@Test
  public void testStartWithRollingThenRestartWithRolling() throws Exception {
    Properties config = createConfig();
    config.setProperty(LOG_FILE, logFile.getAbsolutePath());
    config.setProperty(LOG_FILE_SIZE_LIMIT, "1");

    system = DistributedSystem.connect(config);

    logAndRollAndVerify(1);

    DistributedSystem firstSystem = system;

    assertThat(logFile).exists();
    assertThat(childFile(1, 1)).exists();
    assertThat(childFile(1, 2)).exists();
    assertThat(childFile(1, 3)).doesNotExist();
    assertThat(childFile(2, 1)).doesNotExist();

    system.disconnect();

    config.put(LOG_DISK_SPACE_LIMIT, "200");
    system = DistributedSystem.connect(config);

    assertThat(system).isNotSameAs(firstSystem);
    assertThat(childFile(1, 3)).exists();
  }
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