public void AdapterTest()
throws JsonParseException,
JsonMappingException,
IOException
{
Person currentUser = alfresco.getCurrentUser();
String displayName = connection.getDisplayName();
assertEquals(currentUser.getFirstName() + " " + currentUser.getLastName(), displayName);
UserProfile userProfile = connection.fetchUserProfile();
assertEquals(currentUser.getEmail(), userProfile.getEmail());
assertEquals(currentUser.getFirstName(), userProfile.getFirstName());
assertEquals(currentUser.getLastName(), userProfile.getLastName());
assertEquals(currentUser.getId(), userProfile.getUsername());
}