IntervalFilter implements VariantFilter { @Override public int hashCode() { return Objects.hash(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 testHashCode() { IntervalFilter otherFilter = new IntervalFilter(SEARCH_INTERVAL); assertThat(instance.hashCode(), equalTo(otherFilter.hashCode())); }