private void verifyIsDelegatingForContextWideFilter(final Level level,
      final boolean expectIsDelegating) throws Exception {
    assertThat(expectIsDelegating).isEqualTo(true); // always true for Context-wide Filter

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

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

    // note: unlike other filters, Context-wide filters are processed BEFORE isEnabled checks

    assertThat(logger.isTraceEnabled()).isEqualTo(false);
    assertThat(logger.isDebugEnabled()).isEqualTo(false);
    assertThat(logger.isInfoEnabled()).isEqualTo(false);
    assertThat(logger.isWarnEnabled()).isEqualTo(false);
    assertThat(logger.isErrorEnabled()).isEqualTo(false);
    assertThat(logger.isFatalEnabled()).isEqualTo(false);

    assertThat(logger.isTraceEnabled(enabledMarker)).isEqualTo(true);
    assertThat(logger.isDebugEnabled(enabledMarker)).isEqualTo(true);
    assertThat(logger.isInfoEnabled(enabledMarker)).isEqualTo(true);
    assertThat(logger.isWarnEnabled(enabledMarker)).isEqualTo(true);
    assertThat(logger.isErrorEnabled(enabledMarker)).isEqualTo(true);
    assertThat(logger.isFatalEnabled(enabledMarker)).isEqualTo(true);

    assertThat(logger.isTraceEnabled(unusedMarker)).isEqualTo(false);
    assertThat(logger.isDebugEnabled(unusedMarker)).isEqualTo(false);
    assertThat(logger.isInfoEnabled(unusedMarker)).isEqualTo(false);
    assertThat(logger.isWarnEnabled(unusedMarker)).isEqualTo(false);
    assertThat(logger.isErrorEnabled(unusedMarker)).isEqualTo(false);
    assertThat(logger.isFatalEnabled(unusedMarker)).isEqualTo(false);

    assertThat(((FastLogger) logger).isDelegating()).isEqualTo(expectIsDelegating);
  }
Verifies FastLogger isDelegating if there is a Context-wide 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