FrequencyFilter implements VariantFilter { @Override public int hashCode() { int hash = 7; hash = 29 * hash + Float.floatToIntBits(this.maxFreq); hash = 29 * hash + Objects.hashCode(FrequencyFilter.filterType); return hash; } FrequencyFilter(float maxFreq); float getMaxFreq(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testHashCode() { FrequencyFilter otherFilter = new FrequencyFilter(FREQ_THRESHOLD); assertThat(instance.hashCode(), equalTo(otherFilter.hashCode())); }