@Test
  public void testSimpleStartRestartWithRolling() {
    Properties config = createConfig();
    config.setProperty(LOG_FILE, logFile.getAbsolutePath());
    config.setProperty(LOG_FILE_SIZE_LIMIT, "1");
    config.setProperty(LOG_DISK_SPACE_LIMIT, "200");

    system = DistributedSystem.connect(config);
    system.disconnect();

    for (int mainInt = 2; mainInt <= 4; mainInt++) {
      assertThat(metaFile(mainInt - 1)).exists();

      File newMetaFile = metaFile(mainInt);
      File newRolledLogFile = childFile(mainInt - 1, 1);

      assertThat(newMetaFile).doesNotExist();
      assertThat(newRolledLogFile).as("mainInt=" + mainInt + ", newMetaFile=" + newMetaFile
          + ", newRolledLogFile=" + newRolledLogFile).doesNotExist();

      system = DistributedSystem.connect(config);

      assertThat(newMetaFile).exists();
      assertThat(newRolledLogFile).exists();

      system.disconnect();
    }
  }
Integration tests for log rolling with {@link DistributedSystem} lifecycle.

@since GemFire 6.5
geode-core/src/integrationTest/java/org/apache/geode/logging/internal/api/LogRollingWithDistributedSystemIntegrationTest.java