@Test
public void listAllIssues() throws Exception {

	mockServer.expect(requestTo("https://api.github.com/issues?per_page=25")).andExpect(method(HttpMethod.GET))
			// .andExpect(header("Authorization", "Bearer ACCESS_TOKEN"))
			.andRespond(
					withSuccess(new ClassPathResource("listIssues.json", getClass()), MediaType.APPLICATION_JSON));
	List<Issue> issueList = issuesTemplate.listAllIssues();
	Assertions.assertThat(issueList).isNotNull();
	Assertions.assertThat(issueList.size()).isEqualTo(1);
	Assertions.assertThat(issueList.get(0).getId()).isEqualTo(1);
}