	@Test
	public void getUserProfile() {

		mockServer.expect(requestTo(XingTemplate.DEFAULT_BASE_URL + ProfileTemplate.USERS_URL.replaceFirst("\\{id\\}", "me"))).andExpect(method(GET))
				.andRespond(withSuccess(new ClassPathResource("testdata/profile.json", getClass()), MediaType.APPLICATION_JSON));
		XingProfile userProfile = xing.profileOperations().getUserProfile();
		assertEquals("6628146_33f97b", userProfile.getId());
		assertEquals("Johannes", userProfile.getFirstName());
		assertEquals("Bühler", userProfile.getLastName());

		List<String> badges = userProfile.getBadges();
		assertEquals(1, badges.size());
		assertEquals("PREMIUM", badges.get(0));

		assertThat(userProfile.getPermalink(), is(not(nullValue())));
		assertThat(userProfile.getProfessionalExperience(), is(not(nullValue())));
		assertEquals(2, userProfile.getProfessionalExperience().getNonPrimaryCompanies().size());
		assertEquals("CANOOENGINEERINGAG", userProfile.getProfessionalExperience().getPrimaryCompany().getTag());
		assertEquals(Integer.valueOf(1), userProfile.getProfessionalExperience().getPrimaryCompany().getBeginDate().getMonth());
		assertEquals("Senior Software Engineer", userProfile.getProfessionalExperience().getPrimaryCompany().getTitle());
		assertEquals(CareerLevel.PROFESSIONAL_EXPERIENCED, userProfile.getProfessionalExperience().getPrimaryCompany().getCareerLevel());
		assertThat(userProfile.getEducationalBackground(), is(not(nullValue())));
		assertEquals(2, userProfile.getEducationalBackground().getSchools().size());
		assertEquals(3, userProfile.getEducationalBackground().getQualifications().size());
		assertEquals("Java Design Patterns Course Certificate", userProfile.getEducationalBackground().getQualifications().get(2));
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.32x32.jpg", userProfile.getPhotoUrls().getSize_32x32());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.48x48.jpg", userProfile.getPhotoUrls().getSize_48x48());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.64x64.jpg", userProfile.getPhotoUrls().getSize_64x64());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.96x96.jpg", userProfile.getPhotoUrls().getSize_96x96());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.128x128.jpg", userProfile.getPhotoUrls().getSize_128x128());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.192x192.jpg", userProfile.getPhotoUrls().getSize_192x192());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.256x256.jpg", userProfile.getPhotoUrls().getSize_256x256());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.1024x1024.jpg", userProfile.getPhotoUrls().getSize_1024x1024());
		assertEquals("http://www.xing.com/assets/frontend_minified/img/users/nobody_m.original.jpg", userProfile.getPhotoUrls().getSize_Original());

	}