assertNull(profile.getUsername());
}
@Test
public void setConnectionValues() {
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));
TestConnectionValues connectionValues = new TestConnectionValues();
apiAdapter.setConnectionValues(facebook, connectionValues);
assertEquals("Craig Walls", connectionValues.getDisplayName());
assertEquals("http://graph.facebook.com/v1.0/12345678/picture", connectionValues.getImageUrl());
assertEquals("http://facebook.com/profile.php?id=12345678", connectionValues.getProfileUrl());