@Test
public void getSuggestions() {

	mockServer.expect(requestTo(JobTemplate.SUGGESTED_URL
			.replaceFirst("\\{\\&start\\}", "start=0")
			.replaceFirst("\\{\\&count\\}", "&count=10") + "&oauth2_access_token=ACCESS_TOKEN")).andExpect(method(GET))
		.andRespond(withSuccess(new ClassPathResource("job_suggestions.json", getClass()), MediaType.APPLICATION_JSON));
	
	List<Job> jobs = linkedIn.jobOperations().getSuggestions(0, 10).getJobs();
	
	assertEquals(10, jobs.size());
	Job j = jobs.get(6);
	assertEquals(true, j.isActive());
	assertEquals(139355, j.getCompany().getId());
	assertEquals("Allen Recruitment Consulting", j.getCompany().getName());
	assertEquals("5404", j.getCustomerJobCode());
	assertEquals(2755, j.getDescription().length());
	assertEquals(400, j.getDescriptionSnippet().length());
	assertLinkedInDate(j.getExpirationDate(), 2012, 2, 6);
	assertEquals(new Date(1328549338000l), j.getExpirationTimestamp());
	assertEquals(2160963, j.getId());
	assertProfile(j.getJobPoster(), "U1Gll9nr47", "Director, Allen Recruitment Consulting - Recruitment", "Louise", "Allen (Louise@AllenRec.com)",null, "");
	assertEquals("Dublin", j.getLocationDescription());
	assertLinkedInDate(j.getPostingDate(), 2011, 11, 8);
	assertEquals(new Date(1320773338000l), j.getPostingTimestamp());
	assertEquals("60 - 70K or 350-400/day (EURO)", j.getSalary());
	assertEquals("https://www.linkedin.com/jobs?viewJob=&jobId=2160963&trk=api*a151944*s160233*", j.getSiteJobUrl());
	assertEquals(494, j.getSkillsAndExperience().length());
	
	JobPosition p = j.getPosition();
	assertEquals("4", p.getExperienceLevel().getCode());
	assertEquals("Mid-Senior level", p.getExperienceLevel().getName());
	assertEquals("4", p.getIndustries().get(0).getCode());
	assertEquals("Computer Software", p.getIndustries().get(0).getName());
	assertEquals("it", p.getJobFunctions().get(0).getCode());
	assertEquals("Information Technology", p.getJobFunctions().get(0).getName());
	assertEquals("F", p.getJobType().getCode());
	assertEquals("Full-time", p.getJobType().getName());
	assertEquals("ie", p.getLocation().getCountry());
	assertEquals("Ireland", p.getLocation().getName());
	assertEquals("Java Developer - GWT (Perm or Contract) \u2013 Dublin, Ireland", p.getTitle());
}