lib/src/test/java/io/ably/lib/test/realtime/RealtimePresenceHistoryTest.java
/**
     * Verifies an Exception is thrown, when a presence history is requested
     * with parameter {"untilAttach":"true}" before client is attached to the channel
     *
     * @throws AblyException
     */
Verifies an Exception is thrown, when a presence history is requested
with parameter {"untilAttach":"true}" before client is attached to the channel


Verifies an Exception is thrown when a presence history is requested with parameter { " untilAttach " : " true } " before client is attached to the channel
@Test(expected=AblyException.class)
    public void presencehistory_until_attach_before_attached() throws AblyException {
        ClientOptions options = createOptions(testVars.keys[0].keyStr);
        AblyRealtime ably = new AblyRealtime(options);
        ably.channels.get("test").presence.history(new Param[]{ new Param("untilAttach", "true")});
        ably.close();
    }
@ Test ( expected = AblyException . class ) public void presencehistory_until_attach_before_attached ( ) throws AblyException { ClientOptions options = createOptions ( testVars . keys [ 0 ] . keyStr ) ; AblyRealtime ably = new AblyRealtime ( options ) ; ably . channels . get ( "test" ) . presence . history ( new Param [ ] { new Param ( "untilAttach" , "true" ) } ) ; ably . close ( ) ; }
Verifies an Exception is thrown, when a presence history is requested
 with parameter {"untilAttach":"true}" before client is attached to the channel
Verifies an Exception is thrown when a presence history is requested with parameter { " untilAttach " : " true } " before client is attached to the channel