@Test
public void fetchProfile() {

	ProfileOperations profileOperations = Mockito.mock(ProfileOperations.class);
	Mockito.when(linkedin.profileOperations()).thenReturn(profileOperations);
	Mockito.when(profileOperations.getUserProfile()).thenReturn(new LinkedInProfile("50A3nOf73z", "Craig", "Walls", "Spring Guy", "Software", "https://www.linkedin.com/in/habuma", 
			new UrlResource(null, "https://www.linkedin.com/profile?viewProfile=&key=3630172&authToken=0IpZ&authType=name&trk=api*a121026*s129482*"), "https://media.linkedin.com/mpr/mprx/0_9-Hjc8b0ViE1gGElNtdCcGh0s3pjxbRlNzpCciT05XHD8i2Asq4AM_zAN7yGp8VgcAoi4k1faewD"));
	UserProfile profile = apiAdapter.fetchUserProfile(linkedin);
	assertEquals("Craig Walls", profile.getName());
	assertEquals("Craig", profile.getFirstName());
	assertEquals("Walls", profile.getLastName());
	assertNull(profile.getEmail());
	assertNull(profile.getUsername());
}