source: class GitHubAdapterTest {
  
  	private GitHubAdapter apiAdapter;
  	private GitHub github;
  
  	@Test
  	public void fetchProfileMiddleName() {
  
target: 		UserOperations userOperations = Mockito.mock(UserOperations.class);
  		when(github.userOperations()).thenReturn(userOperations);
  		when(userOperations.getUserProfile()).thenReturn(createProfile(123456L, "habuma", "Michael Craig Walls", "Plano, TX", "SpringSource", null, "cwalls@vmware.com", null, null));
  		UserProfile profile = apiAdapter.fetchUserProfile(github);
  		assertEquals("Michael Craig Walls", profile.getName());
  		assertEquals("Michael", profile.getFirstName());
  		assertEquals("Walls", profile.getLastName());
  		assertEquals("cwalls@vmware.com", profile.getEmail());
  		assertEquals("habuma", profile.getUsername());
  	}
  
  }