private void verifyIsDelegatingForAppenderRefFilter(final Level level,
      final boolean expectIsDelegating) throws Exception {
    assertThat(expectIsDelegating).isEqualTo(true); // always true for AppenderRef Filter

    writeAppenderRefFilterConfigFile(configFile, level);
    loggerContextRule.reconfigure();
    configuration.configChanged();

    assertThat(logger.getLevel()).isEqualTo(level);

    assertThat(logger.isTraceEnabled()).isEqualTo(level.isLessSpecificThan(Level.TRACE));
    assertThat(logger.isDebugEnabled()).isEqualTo(level.isLessSpecificThan(Level.DEBUG));
    assertThat(logger.isInfoEnabled()).isEqualTo(level.isLessSpecificThan(Level.INFO));
    assertThat(logger.isWarnEnabled()).isEqualTo(level.isLessSpecificThan(Level.WARN));
    assertThat(logger.isErrorEnabled()).isEqualTo(level.isLessSpecificThan(Level.ERROR));
    assertThat(logger.isFatalEnabled()).isEqualTo(level.isLessSpecificThan(Level.FATAL));

    assertThat(logger.isTraceEnabled(enabledMarker))
        .isEqualTo(level.isLessSpecificThan(Level.TRACE));
    assertThat(logger.isDebugEnabled(enabledMarker))
        .isEqualTo(level.isLessSpecificThan(Level.DEBUG));
    assertThat(logger.isInfoEnabled(enabledMarker)).isEqualTo(level.isLessSpecificThan(Level.INFO));
    assertThat(logger.isWarnEnabled(enabledMarker)).isEqualTo(level.isLessSpecificThan(Level.WARN));
    assertThat(logger.isErrorEnabled(enabledMarker))
        .isEqualTo(level.isLessSpecificThan(Level.ERROR));
    assertThat(logger.isFatalEnabled(enabledMarker))
        .isEqualTo(level.isLessSpecificThan(Level.FATAL));

    assertThat(logger.isTraceEnabled(unusedMarker))
        .isEqualTo(level.isLessSpecificThan(Level.TRACE));
    assertThat(logger.isDebugEnabled(unusedMarker))
        .isEqualTo(level.isLessSpecificThan(Level.DEBUG));
    assertThat(logger.isInfoEnabled(unusedMarker)).isEqualTo(level.isLessSpecificThan(Level.INFO));
    assertThat(logger.isWarnEnabled(unusedMarker)).isEqualTo(level.isLessSpecificThan(Level.WARN));
    assertThat(logger.isErrorEnabled(unusedMarker))
        .isEqualTo(level.isLessSpecificThan(Level.ERROR));
    assertThat(logger.isFatalEnabled(unusedMarker))
        .isEqualTo(level.isLessSpecificThan(Level.FATAL));

    assertThat(((FastLogger) logger).isDelegating()).isEqualTo(expectIsDelegating);
  }
Verifies FastLogger isDelegating if there is a AppenderRef Filter.

@param level the log Level
@param expectIsDelegating true if expecting FastLogger.isDelegating to be true
geode-log4j/src/integrationTest/java/org/apache/geode/logging/log4j/internal/impl/FastLoggerIntegrationTest.java