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

    system = DistributedSystem.connect(config);

    File[] metaLogsMatched =
        dir.listFiles((dir, name) -> mainIdPattern.matcher(name).matches());
    assertThat(metaLogsMatched).hasSize(1);

    File metaLogFile = metaFile(1);
    assertThat(metaLogFile).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