FilterReportFactory { private FilterReport makePriorityScoreFilterReport(PriorityScoreFilter filter, List<Gene> genes) { List<String> messages = ImmutableList.of(String.format("Genes filtered for minimum %s score of %s", filter.getPriorityType(), filter.getMinPriorityScore())); return makeGeneFilterReport(filter, genes, messages); } FilterReportFactory(); List<FilterReport> makeFilterReports(Analysis analysis, AnalysisResults analysisResults);  }
@Test public void testMakePriorityScoreFilterReport() { float minimumPriorityScore = 0.5f; Filter filter = new PriorityScoreFilter(PriorityType.PHIVE_PRIORITY, minimumPriorityScore); FilterType filterType = FilterType.PRIORITY_SCORE_FILTER; ImmutableList<String> messages = ImmutableList.of("Genes filtered for minimum PHIVE_PRIORITY score of 0.5"); FilterReport report = new FilterReport(filterType, 0, 0, messages); FilterReport result = instance.makeFilterReport(filter, analysisResults); assertThat(result, equalTo(report)); }