### Question:
LoggerFactory { public synchronized void useNoLogging() { setImplementation(NoLoggingImpl.class); }  Logger getLog(Class<?> aClass); Logger getLog(String logger); synchronized void useCustomLogging(Class<? extends Logger> clazz); synchronized void useSlf4jLogging(); synchronized void useCommonsLogging(); synchronized void useLog4JLogging(); synchronized void useLog4J2Logging(); synchronized void useJdkLogging(); synchronized void useStdOutLogging(); synchronized void useNoLogging(); final String MARKER; }### Answer:
@Test public void useNoLogging() { LoggerFactory.useNoLogging(); Logger log = LoggerFactory.getLog(Object.class); logSomething(log); assertThat(log, instanceOf(NoLoggingImpl.class)); }