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

    handler.initMainArchiveId(archive);

    assertThat(new File(dir, name + formatIds(1, 0) + ".marker")).exists();
  }
Tests behavior that interacts with file system.
geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/StatArchiveHandlerIntegrationTest.java