@Test
  @Parameters({"1,1", "1,10", "10,1", "10,10"})
  public void getRenameArchiveName_withOldArchives_rollsMainId(final int mainCount,
      final int childCount) throws Exception {
    StatArchiveHandler handler =
        new StatArchiveHandler(mockConfig, mockCollector, rollingFileHandler);
    createEmptyArchiveFiles(dir, name, ext, mainCount, childCount);

    File renamed = handler.getRenameArchiveName(archive);

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