PathogenicityFilter implements VariantFilter { @Override public String toString() { return "PathogenicityFilter{" + "keepNonPathogenic=" + keepNonPathogenic + '}'; } PathogenicityFilter(boolean keepNonPathogenic); @JsonProperty boolean keepNonPathogenic(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testToString() { String expResult = "PathogenicityFilter{keepNonPathogenic=false}"; String result = instance.toString(); assertThat(result, equalTo(expResult)); }