@Test
  public void testAreIndexeSetsEqualAndHashCodeSame() throws Exception {
    Map<Integer, Portfolio> portfolioMap = createPortfolioObjects(100, 0);
    HashIndexSet indexSet1 = createHashIndexSet();
    HashIndexSet indexSet2 = createHashIndexSet();

    addPortfoliosToHashIndexSet(portfolioMap, indexSet1);
    addPortfoliosToHashIndexSet(portfolioMap, indexSet2);

    assertTrue(indexSet1.equals(indexSet2));
    assertTrue(indexSet2.equals(indexSet1));
    assertEquals(indexSet1.hashCode(), indexSet2.hashCode());
  }
Remove all should still remove all portfolios provided, even if there are more provided then
contained
geode-core/src/test/java/org/apache/geode/cache/query/internal/index/HashIndexSetJUnitTest.java