IntervalFilter implements VariantFilter { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; IntervalFilter that = (IntervalFilter) o; return Objects.equals(intervals, that.intervals); } IntervalFilter(ChromosomalRegion interval);  IntervalFilter(Collection<ChromosomalRegion> chromosomalRegions); List<ChromosomalRegion> getChromosomalRegions(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testNotEqualsIntervalDifferent() { IntervalFilter otherFilter = new IntervalFilter(GeneticInterval.parseString("chr3:12334-67850")); assertThat(instance.equals(otherFilter), is(false)); }
@Test public void testIsEquals() { IntervalFilter otherFilter = new IntervalFilter(SEARCH_INTERVAL); assertThat(instance.equals(otherFilter), is(true)); }