@Test(expected = NullPointerException.class)
public void testGetRoomFilesShouldFailWithNullSort() {

    rest.getRoomFiles("roomId", BaseRoom.RoomType.PUBLIC, 0, Attachment.SortBy.UPLOADED_DATE, null, attachmentCallback);
}