@Before
  public void setUp() {
    securityLogWriterAppender = loggerContextRule.getAppender(SECURITY_APPENDER_NAME,
        LogWriterAppender.class);

    String name = testName.getMethodName();
    securityLogFile = new File(temporaryFolder.getRoot(), name + "-security.log");

    LogConfig logConfig = mock(LogConfig.class);
    when(logConfig.getName()).thenReturn(name);
    when(logConfig.getSecurityLogFile()).thenReturn(securityLogFile);

    logConfigSupplier = mock(LogConfigSupplier.class);
    when(logConfigSupplier.getLogConfig()).thenReturn(logConfig);

    sessionContext = mock(SessionContext.class);
    when(sessionContext.getLogConfigSupplier()).thenReturn(logConfigSupplier);

    securityGeodeLogger = LogService.getLogger(SECURITY_LOGGER_NAME);
    logMessage = "Logging in " + testName.getMethodName();
  }
Integration tests for {@link LogWriterAppender} with security logger and
{@link ConfigurationProperties#SECURITY_LOG_FILE}.
geode-log4j/src/integrationTest/java/org/apache/geode/logging/log4j/internal/impl/SecurityLogWriterAppenderIntegrationTest.java