private void securityLogAndRollAndVerify(final int mainId) throws IOException {
    File metaLogFile = metaFile(mainId);
    File childLogFile01 = childFile(mainId, 1);
    File childLogFile02 = childFile(mainId, 2);
    File childSecurityLogFile01 = childSecurityFile(mainId, 1);
    File childSecurityLogFile02 = childSecurityFile(mainId, 2);

    String switchingToLog = "Switching to log " + logFile;
    String rollingCurrentLogTo01 = "Rolling current log to " + childLogFile01;
    String rollingCurrentLogTo02 = "Rolling current log to " + childLogFile02;

    String messageInChild = "hey im the first child";
    String messageInSecurityChild = "hey im the first security child";
    String messagePrefix = "hey whatsup i can't believe it wow ";

    system.getLogWriter().info(messageInChild);
    system.getSecurityLogWriter().info(messageInSecurityChild);

    assertThat(readContents(logFile)).contains(messageInChild)
        .doesNotContain(messageInSecurityChild);
    assertThat(readContents(securityLogFile)).contains(messageInSecurityChild)
        .doesNotContain(messageInChild);

    assertThat(readContents(metaLogFile)).contains(switchingToLog);

    assertThat(childLogFile01).doesNotExist();
    assertThat(childSecurityLogFile01).doesNotExist();
    assertThat(childLogFile02).doesNotExist();
    assertThat(childSecurityLogFile02).doesNotExist();

    logUntilFileExists(system.getLogWriter(), messagePrefix, childLogFile02);
    logUntilFileExists(system.getSecurityLogWriter(), messagePrefix, childSecurityLogFile02);

    assertThat(readContents(logFile)).contains(messagePrefix);
    assertThat(readContents(securityLogFile)).contains(messagePrefix);

    String metaLogContents = readContents(metaLogFile);
    assertThat(metaLogContents).contains(rollingCurrentLogTo01);
    assertThat(metaLogContents).contains(rollingCurrentLogTo02);
    assertThat(metaLogContents).doesNotContain(messagePrefix);

    assertThat(readContents(childLogFile01)).contains(messagePrefix);
    assertThat(readContents(childSecurityLogFile01)).contains(messagePrefix);
    assertThat(readContents(childLogFile02)).contains(messagePrefix);
    assertThat(readContents(childSecurityLogFile02)).contains(messagePrefix);
  }
1. Lets assert that the logfile exists and that it is a proper normal logfile<br>
2. Assert that the meta logfile exists and has good stuff in it<br>
3. Let's log a bunch and show that we rolled<br>
4. Show that old file has right old stuff in it<br>
5. Show that new file has right new stuff in it<br>
6. Show that meta has right stuff in it<br>
geode-core/src/integrationTest/java/org/apache/geode/logging/internal/api/LogRollingWithDistributedSystemIntegrationTest.java