@Test
public void getIssues() {

	responseHeaders.setContentType(MediaType.APPLICATION_JSON);
	mockServer.expect(requestTo("https://api.github.com/repos/spring-guides/gs-rest-service/issues"))
			.andExpect(method(GET))
			.andRespond(withSuccess(jsonResource("repo-issues"), MediaType.APPLICATION_JSON));
	List<GitHubIssue> issues = gitHub.repoOperations().getIssues("spring-guides", "gs-rest-service");
	assertEquals(1, issues.size());
       GitHubIssue issue = issues.get(0);
       assertEquals(10, issue.getNumber());
	assertEquals("open", issue.getState());
	assertEquals("Use WAR packaging for rest service", issue.getTitle());
	assertEquals("You can deploy to WTP, build a war, execute it (java -jar) or use mvn exec.",
			issues.get(0).getBody());
	assertEquals("https://api.github.com/repos/spring-guides/gs-rest-service/issues/10",
			issues.get(0).getUrl());
	assertEquals("https://github.com/spring-guides/gs-rest-service/pull/10",
			issues.get(0).getHtmlUrl());
       assertEquals(new Date(1370334590000L), issue.getCreatedAt());
       assertEquals(new Date(1370939025000L), issue.getUpdatedAt());
       assertNull(issue.getClosedAt());
}