@Test
public void getHooks() {

       responseHeaders.setContentType(MediaType.APPLICATION_JSON);
       mockServer.expect(requestTo("https://api.github.com/repos/octocat/Hello-World/hooks"))
               .andExpect(method(GET))
               .andRespond(withSuccess(jsonResource("repo-hooks"), MediaType.APPLICATION_JSON));
       List<GitHubHook> hooks = gitHub.repoOperations().getHooks("octocat", "Hello-World");
       assertEquals(1, hooks.size());
       GitHubHook hook = hooks.get(0);
       assertEquals(1, hook.getId());
       assertEquals("https://api.github.com/repos/octocat/Hello-World/hooks/1", hook.getUrl());
       assertEquals("web", hook.getName());
       assertTrue(hook.isActive());
       assertEquals(new Date(1315329987000L), hook.getCreatedAt());
       assertEquals(new Date(1315341563000L), hook.getUpdatedAt());
}