VariantEffectFilter implements VariantFilter { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final VariantEffectFilter other = (VariantEffectFilter) obj; return Objects.equals(this.offTargetVariantTypes, other.offTargetVariantTypes); } VariantEffectFilter(Set<VariantEffect> notWanted); Set<VariantEffect> getOffTargetVariantTypes(); @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 testNotEqualOtherFilter() { PathogenicityFilter obj = new PathogenicityFilter(true); assertThat(instance.equals(obj), is(false)); }
@Test public void testEqualOtherTagetFilter() { VariantEffectFilter obj = new VariantEffectFilter(offTargetVariantEffects); assertThat(instance.equals(obj), is(true)); }