@Test
  public void startupConfigurationIsLoggedToFileAfterBanner() throws Exception {
    List<String> bannerLines = Arrays.asList(StringUtils.split(banner, lineSeparator()));
    List<String> startupConfigLines = Arrays.asList(startupConfiguration);
    List<String> logLines = FileUtils.readLines(mainLogFile, Charset.defaultCharset());

    boolean foundBanner = false;
    boolean foundStartupConfig = false;

    for (String line : logLines) {
      if (bannerLines.contains(line)) {
        assertThat(foundStartupConfig)
            .as("Banner should be logged before startup configuration: " + logLines).isFalse();
        foundBanner = true;
      }
      if (startupConfigLines.contains(line)) {
        assertThat(foundBanner)
            .as("Startup configuration should be logged before banner: " + logLines).isTrue();
        foundStartupConfig = true;
      }
    }

    assertThat(foundBanner).as("Banner not found in: " + logLines).isTrue();
    assertThat(foundStartupConfig).as("Startup configuration not found in: " + logLines).isTrue();
  }
Integration tests for logging of the startup configuration. Startup configuration consists of
{@link Configuration#STARTUP_CONFIGURATION} and {@link DistributionConfig#toLoggerString()}.
geode-core/src/integrationTest/java/org/apache/geode/logging/internal/StartupConfigurationLoggingIntegrationTest.java