@Test
public void testDeserialize() throws Exception {

    Room r = objMapper.readValue(roomJsonStr, Room.class);
    assertEquals("C024BE91L", r.getRoomId());
    assertEquals(new DateTime(1360782804L * 1000), r.getCreationDate());
    assertEquals("fun", r.getName());
    assertEquals("U024BE7LH", r.getOwnerUserId());
    assertEquals("C024BE91L", r.getRoomId());
    assertEquals("Fun times", r.getTopic());
    assertTrue(r.isArchived());
    assertFalse(r.isPrivateRoom());
    assertNull(r.getXmppJid());
    assertNull(r.getGuestAccessURL());
    assertNull(r.getLastActiveDate());
    r = objMapper.readValue(privateRoomJsonStr, Room.class);
    assertEquals("G024BE91L", r.getRoomId());
    assertEquals(new DateTime(1360782804L * 1000), r.getCreationDate());
    assertEquals("fun", r.getName());
    assertEquals("U024BE7LH", r.getOwnerUserId());
    assertEquals("G024BE91L", r.getRoomId());
    assertEquals("Fun times", r.getTopic());
    assertTrue(r.isArchived());
    assertTrue(r.isPrivateRoom());
    assertNull(r.getXmppJid());
    assertNull(r.getGuestAccessURL());
    assertNull(r.getLastActiveDate());
}