FrequencyFilter implements VariantFilter { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final FrequencyFilter other = (FrequencyFilter) obj; return Float.floatToIntBits(this.maxFreq) == Float.floatToIntBits(other.maxFreq); } 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 testNotEqualNull() { Object obj = null; assertThat(instance.equals(obj), is(false)); }
@Test public void testNotEqualOtherObject() { Object obj = "Not equal to this"; assertThat(instance.equals(obj), is(false)); }
@Test public void testNotEqualOtherFrequencyFilterWithDifferentThreshold() { FrequencyFilter otherFilter = new FrequencyFilter(FREQ_THRESHOLD + 1f); assertThat(instance.equals(otherFilter), is(false)); }
@Test public void testEqualsSelf() { assertThat(instance.equals(instance), is(true)); }