@Test
public void getUserGists() {

	responseHeaders.setContentType(MediaType.APPLICATION_JSON);
	mockServer.expect(requestTo("https://api.github.com/users/kdonald/gists"))
		.andExpect(method(GET))
		.andRespond(withSuccess(jsonResource("user-gists"), MediaType.APPLICATION_JSON));
	
	// Verify the list
	List<GitHubGist> gists = gitHub.gistOperations().getUserGists("kdonald");
	assertEquals(4, gists.size());
	
	// Verify the gist
	GitHubGist gist = gists.get(0);
	assertEquals(0, gist.getComments());
	assertTrue(gist.isPublic());
	assertEquals("https://gist.github.com/1603296", gist.getHtmlUrl());
	assertEquals("git@gist.github.com:1603296.git", gist.getGitPushUrl());
	assertEquals("git://gist.github.com/1603296.git", gist.getGitPullUrl());
	assertNotNull(gist.getCreatedAt());
	assertNotNull(gist.getUpdatedAt());
	
	// Verify the file
	GitHubFile file = gist.getFiles().get("jmustache-spring-mvc.java");
	assertNotNull(file);
	assertEquals("jmustache-spring-mvc.java", file.getFilename());
	assertEquals("text/plain", file.getType());
	assertEquals("https://gist.github.com/raw/1603296/18195cefb653c8ed3ecbd0cb3a60a76eb417158e/jmustache-spring-mvc.java", file.getRawUrl());
	assertEquals("Java", file.getLanguage());
	assertEquals(3749L, file.getSize());
       assertNull(file.getContent()); // No content for a file in a list of Gists
}