### Question:
GithubDiffManager { public List<CommitFile> getFiles() throws IOException { log.info("get diff {}/{}", repoId.generateId(), prNumber); return prService.getFiles(repoId, prNumber); } GithubDiffManager(PullRequestService prService, RepositoryId repoId, int prNumber); List<CommitFile> getFiles();  }### Answer:
@Test public void getFileDiff() throws IOException { RepositoryId repoId = new RepositoryId("test", "test"); GithubDiffManager githubDiffManager = new GithubDiffManager(mockPrService, repoId, 1); List<CommitFile> result = new Gson() .fromJson(new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream("github_diff.diff"))) , new TypeToken<List<CommitFile>>() {}.getType()); when(mockPrService.getFiles(repoId, 1)).thenReturn(result); assertEquals(result, githubDiffManager.getFiles()); }