@Test
public void getUserProfile() throws Exception {

	mockServer.expect(requestTo("https://api.github.com/user")).andExpect(method(GET))
			.andExpect(header("Authorization", "Bearer ACCESS_TOKEN"))
			.andRespond(withSuccess(new ClassPathResource("profile.json", getClass()), MediaType.APPLICATION_JSON));
	GitHubUserProfile profile = gitHub.userOperations().getUserProfile();
	assertEquals("habuma", profile.getLogin());
	assertEquals("Craig Walls", profile.getName());
	assertEquals("SpringSource", profile.getCompany());
	assertEquals("https://spring.io/team/cwalls/", profile.getBlog());
	assertEquals("cwalls at vmware.com", profile.getEmail());
	assertEquals(167926, profile.getId());
}