@Test
public void testMakeKnownVariantFilterReportProducesCorrectStatistics() {

    Filter filter = new KnownVariantFilter();
    FilterType filterType = filter.getFilterType();
    VariantEvaluation completelyNovelVariantEval = makePassedVariant(filterType);
    completelyNovelVariantEval.setFrequencyData(FrequencyData.empty());
    variantEvaluations.add(completelyNovelVariantEval);
    
    VariantEvaluation mostCommonVariantEvalInTheWorld = makeFailedVariant(filterType);
    mostCommonVariantEvalInTheWorld.setFrequencyData(
            FrequencyData.of(RsId.of(123456),
                Frequency.of(FrequencySource.THOUSAND_GENOMES, 100f),
                Frequency.of(FrequencySource.ESP_ALL, 100f),
                Frequency.of(FrequencySource.EXAC_OTHER, 100f)
            ));
    variantEvaluations.add(mostCommonVariantEvalInTheWorld);
    List<String> messages = new ArrayList<>();
    messages.add("Removed 1 variants with no RSID or frequency data (50.0%)");
    messages.add("dbSNP \"rs\" id available for 1 variants (50.0%)");
    messages.add("Data available in dbSNP (for 1000 Genomes Phase I) for 1 variants (50.0%)");
    messages.add("Data available in Exome Server Project for 1 variants (50.0%)");
    messages.add("Data available from ExAC Project for 1 variants (50.0%)");
    FilterReport report = new FilterReport(filter.getFilterType(), 1, 1, messages);
    FilterReport result = instance.makeFilterReport(filter, analysisResults);
    System.out.println(result);
    assertThat(result, equalTo(report));
}