@Test
public void testParse() throws Exception {

	final UserJsonParser parser = new UserJsonParser();
	final User user = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/user/valid.json"));
	assertEquals(TestUtil.toUri("http://localhost:8090/jira/secure/useravatar?size=large&ownerId=admin&avatarId=10054"), user.getAvatarUri());
	assertNull(user.getSmallAvatarUri());
	assertEquals("admin", user.getName());
	assertEquals("Administrator", user.getDisplayName());
	assertEquals("user@atlassian.com", user.getEmailAddress());
	assertEquals(new ExpandableProperty<String>(3, ImmutableList.of("jira-administrators", "jira-developers", "jira-users")), user.getGroups());
	assertNull(user.getTimezone());
}