@Test
public void testDeserialize() throws Exception {

    Message msg = objMapper.readValue(messageJsonStr, Message.class);
    assertEquals("U023BECGF", msg.getFromUserId());
    assertEquals("test message", msg.getMessage());
    // the deserializer drops the nanoseconds
    assertEquals(new DateTime(1431708451000L), msg.getDate());
    assertNull(msg.getFromName());
    assertEquals(MessageType.MESSAGE, msg.getType());
}