@Test
  public void logsToSpecifiedFile() throws Exception {
    logger.info(logMessage);

    assertThat(logFile).exists();
    String content = readFileToString(logFile, defaultCharset()).trim();
    assertThat(content).contains(logMessage);
  }
Integration tests for {@link LogWriterAppender} with {@code memberName} in
{@code log4j2.xml}.
geode-log4j/src/integrationTest/java/org/apache/geode/logging/log4j/internal/impl/LogWriterAppenderWithMemberNameInXmlIntegrationTest.java