### Question:
ObjectFactory { public DiffParser getDiffReader() { if ("file".equals(param.getDiffType())) { return new FileDiffReader(param.getDiffPath()); } else { return new GithubDiffReader(getPrManager()); } } ObjectFactory(Parameter param); DiffParser getDiffReader(); CoverageReportParser getCoverageReportParser(); NewCoverageChecker getNewCoverageParser(); Reporter getReporter(); GithubPullRequestManager getPrManager();  }### Answer:
@Test void getDiffParser() { String diffPath = getClass().getClassLoader().getResource("test_diff.diff").getPath(); assertEquals(FileDiffReader.class, new ObjectFactory(Parameter.builder().diffPath(diffPath).diffType("file").build()).getDiffReader().getClass()); }