" }";
@Test
public void testSerialization() throws Exception
{
UserInfo userInfo = mapper.readValue(JSON_TEST, UserInfo.class);
TestCase.assertNotNull(userInfo);
TestCase.assertEquals(userInfo.getId(), "et53-5za7");
TestCase.assertEquals(userInfo.getDisplayName(), "Will Pugh");
TestCase.assertEquals(userInfo.getScreenName(), "Will Pugh");
UserInfo userInfo2 = mapper.readValue(JSON_TEST_NO_ITEMS, UserInfo.class);
TestCase.assertNotNull(userInfo2);
TestCase.assertNull(userInfo2.getId());
TestCase.assertNull(userInfo2.getDisplayName());
TestCase.assertNull(userInfo2.getScreenName());
}