QualityFilter implements VariantFilter { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final QualityFilter other = (QualityFilter) obj; return Double.doubleToLongBits(this.mimimumQualityThreshold) == Double.doubleToLongBits(other.mimimumQualityThreshold); } QualityFilter(double mimimumQualityThreshold); double getMimimumQualityThreshold(); @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 testNotEqualAnotherClass() { Object obj = new Object(); assertThat(instance.equals(obj), is(false)); }
@Test public void testNotEqualToOtherWithDifferentQualityThreshold() { Object obj = new QualityFilter(8.0f); assertThat(instance.equals(obj), is(false)); }
@Test public void testEqualToOtherWithSameQualityThreshold() { Object obj = new QualityFilter(MIN_QUAL_THRESHOLD); assertThat(instance.equals(obj), is(true)); }