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

    assertThat(logFile).exists();

    List<String> lines = nonBlankStrings(readLines(logFile, defaultCharset()));
    assertThat(lines).hasSize(1);

    for (String line : lines) {
      Matcher matcher = getPattern().matcher(line);
      assertThat(matcher.matches()).as(failedToMatchRegex(line, getPattern())).isTrue();
      assertThat(matcher.group(Group.MEMBER_NAME.getName())).isEqualTo(MEMBER_NAME);
    }

  }
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