DefaultPlatform extends Platform { @Override protected boolean shouldForceLoggingImpl(String loggerName, Level level, boolean isEnabled) { return context.shouldForceLogging(loggerName, level, isEnabled); } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder);   }
@Test public void testForcedLogging() { Mockito.when(mockContext.shouldForceLogging("logger.name", Level.INFO, false)) .thenReturn(true); assertThat(platform.shouldForceLoggingImpl("logger.name", Level.INFO, false)).isTrue(); assertThat(platform.shouldForceLoggingImpl("logger.other.name", Level.INFO, false)).isFalse(); }