@Test
  public void sameFirstTSidxEquals() throws Exception {
    ResourceInst resourceInst1 =
        new ResourceInst(archive1, 0, "name", 0, resourceType, false);
    setFirstTSidx(resourceInst1, 1);
    ResourceInst resourceInst2 =
        new ResourceInst(archive1, 0, "name", 0, resourceType, false);
    setFirstTSidx(resourceInst2, 1);

    assertThat(resourceInst1).isEqualTo(resourceInst2);
  }
Unit tests for {@link ResourceInst}.

<p>
Confirms ResourceInst equals change to fix GEODE-1782.

<p>
GEODE-1782: StatArchiveReader ignores later stats resource with same name as closed stats
resource

@since Geode 1.0
geode-core/src/test/java/org/apache/geode/internal/statistics/ResourceInstTest.java