@Test
public void fetchProfile() {
UserOperations userOperations = Mockito.mock(UserOperations.class);
Mockito.when(facebook.userOperations()).thenReturn(userOperations);
Mockito.when(userOperations.getUserProfile()).thenReturn(new FacebookProfile("12345678", "Craig Walls", "Craig", "Walls", null, null));
UserProfile profile = apiAdapter.fetchUserProfile(facebook);
assertEquals("Craig Walls", profile.getName());
assertEquals("Craig", profile.getFirstName());
assertEquals("Walls", profile.getLastName());
assertNull(profile.getEmail());
assertNull(profile.getUsername());
}