@Test
  @Parameters({"1,1,false,false", "1,1,false,true", "1,1,true,false", "1,1,true,true",
      "1,10,false,false", "1,10,false,true", "1,10,true,false", "1,10,true,true",
      "10,1,false,false", "10,1,false,true", "10,1,true,false", "10,1,true,true",
      "10,10,false,false", "10,10,false,true", "10,10,true,false", "10,10,true,true"})
  public void getRollingArchiveName_withOldArchives_rollsChildId(final int mainCount,
      final int childCount, final boolean archiveExists, final boolean archiveClosed)
      throws Exception {
    createEmptyArchiveFiles(dir, name, ext, mainCount, childCount);
    if (archiveExists) {
      archive.createNewFile();
    }
    StatArchiveHandler handler =
        new StatArchiveHandler(mockConfig, mockCollector, rollingFileHandler);

    File file = handler.getRollingArchiveName(archive, archiveClosed);

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