@Test
public void testGetRoomMembersShouldBeSuccessful() {

    mockServer.expect()
            .get()
            .withPath("/api/v1/channels.members?roomId=GENERAL&offset=0")
            .andReturn(200, "{" +
                    "   \"total\":154581," +
                    "   \"offset\":0," +
                    "   \"success\":true," +
                    "   \"members\":[" +
                    "      {" +
                    "         \"utcOffset\":2," +
                    "         \"name\":\"User\"," +
                    "         \"_id\":\"hcBGHsKo763bTDAiw\"," +
                    "         \"username\":\"user\"," +
                    "         \"status\":\"offline\"" +
                    "      }" +
                    "   ]," +
                    "   \"count\":1" +
                    "}")
            .once();
    rest.getRoomMembers("GENERAL", BaseRoom.RoomType.PUBLIC, 0, BaseUser.SortBy.USERNAME, Sort.DESC, usersCallback);
    verify(usersCallback, timeout(DEFAULT_TIMEOUT).only())
            .onSuccess(usersCaptor.capture(), anyInt());
    List<User> userList = usersCaptor.getValue();
    assertThat(userList, is(notNullValue()));
    assertThat(userList.size(), is(equalTo(1)));
    User user = userList.get(0);
    assertThat(user.id(), is(equalTo("hcBGHsKo763bTDAiw")));
}