PathogenicityFilter implements VariantFilter { @Override public int hashCode() { int hash = 5; hash = 97 * hash + Objects.hashCode(PathogenicityFilter.filterType); hash = 97 * hash + (this.keepNonPathogenic ? 1 : 0); return hash; } 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 testHashCode() { instance = new PathogenicityFilter(false); PathogenicityFilter other = new PathogenicityFilter(false); assertThat(instance.hashCode(), equalTo(other.hashCode())); }