@Test
  public void getRenameArchiveName_withExtraneousIds_withEmptyDir_appendsIds() throws Exception {
    StatArchiveHandler handler =
        new StatArchiveHandler(mockConfig, mockCollector, rollingFileHandler);
    archive = new File(dir, name + "-01-01" + ext);

    File renamed = handler.getRenameArchiveName(archive);

    assertThat(renamed).hasParent(dir).hasName(name + "-01-01-01-01" + ext);
  }
Tests behavior that interacts with file system.
geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/StatArchiveHandlerIntegrationTest.java