@Test
public void search() {

	mockServer.expect(requestTo(
			"https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,industry,site-standard-profile-request,public-profile-url,picture-url,summary,api-standard-profile-request))?keywords=Java+J2EE&country-code=ie&start=0&count=10"
					 + "&oauth2_access_token=ACCESS_TOKEN"
			)).andExpect(method(GET))
		.andRespond(withSuccess(new ClassPathResource("search.json", getClass()), MediaType.APPLICATION_JSON));
	SearchParameters parameters = new SearchParameters();
	parameters.setCountryCode("ie");
	parameters.setKeywords("Java J2EE");
	LinkedInProfiles result = linkedIn.profileOperations().search(parameters);
	assertEquals(0, result.getStart());
	assertEquals(10, result.getCount());
	assertEquals(110, result.getTotal());
	assertEquals(10, result.getPeople().size());
	assertProfile(result.getPeople().get(0),
			"YeagNX-lsX", "IT Consultant at Harvey Nash PLC", "Michelle", "Daly", "Staffing and Recruiting", null);
}