@Test
  public void getRenameArchiveName_withEmptyDir_createsFirstIds() throws Exception {
    StatArchiveHandler handler =
        new StatArchiveHandler(mockConfig, mockCollector, rollingFileHandler);

    File renamed = handler.getRenameArchiveName(archive);

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