FailedVariantFilter implements VariantFilter { @Override public FilterResult runFilter(VariantEvaluation variantEvaluation) { VariantContextFilterState vcfFilterState = determineVariantContextState(variantEvaluation.getVariantContext()); if (vcfFilterState == VariantContextFilterState.PASSED || vcfFilterState == VariantContextFilterState.UNFILTERED) { return PASS; } return FAIL; }  @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override FilterType getFilterType(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testPassesVariantWithPassFilterField() { VariantEvaluation variant = variantEvaluationWithFilterField("PASS"); FilterResult result = instance.runFilter(variant); System.out.println(result); assertThat(result.passed(), is(true)); }
@Test public void testPassesVariantWithUnFilteredFilterField() { VariantEvaluation variant = variantEvaluationWithFilterField("."); FilterResult result = instance.runFilter(variant); System.out.println(result); assertThat(result.passed(), is(true)); }
@Test public void testPassesVariantWithFailedFiltersInFilterField() { VariantEvaluation variant = variantEvaluationWithFilterField("wibble;hoopy;frood"); FilterResult result = instance.runFilter(variant); System.out.println(result); assertThat(result.failed(), is(true)); }