QualityFilter implements VariantFilter { @Override public FilterResult runFilter(VariantEvaluation variantEvaluation) { double phredScore = variantEvaluation.getPhredScore(); if (overQualityThreshold(phredScore)) { return PASS; } return FAIL; } QualityFilter(double mimimumQualityThreshold); double getMimimumQualityThreshold(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testFilterVariantOfHighQualityPassesFilter() { FilterResult filterResult = instance.runFilter(highQualityPassesFilter); FilterTestHelper.assertPassed(filterResult); }
@Test public void testFilterVariantOfLowQualityFailsFilter() { FilterResult filterResult = instance.runFilter(lowQualityFailsFilter); FilterTestHelper.assertFailed(filterResult); }