### Question:
WaarpLoggerFactory { public static WaarpLogger getInstance(final Class<?> clazz) { return getInstance(clazz.getName()); } protected  WaarpLoggerFactory(final WaarpLogLevel level); static WaarpLoggerFactory getDefaultFactory(); static void setDefaultFactoryIfNotSame(
      final WaarpLoggerFactory factory); static void setDefaultFactory(final WaarpLoggerFactory factory); static WaarpLogger getInstance(final Class<?> clazz); static WaarpLogger getInstance(final String name); static WaarpLogger getLogger(final Class<?> clazz); static WaarpLogger getLogger(final String name); static void setLogLevel(final WaarpLogLevel level); static WaarpLogLevel getLogLevel(); static void setLocalName(final String localNameNew);  }### Answer:
@Test public void testIsTraceEnabled() { expect(mock.isTraceEnabled()).andReturn(true); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); assertTrue(logger.isTraceEnabled()); verify(mock); }
@Test public void testIsDebugEnabled() { expect(mock.isDebugEnabled()).andReturn(true); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); assertTrue(logger.isDebugEnabled()); verify(mock); }
@Test public void testIsInfoEnabled() { expect(mock.isInfoEnabled()).andReturn(true); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); assertTrue(logger.isInfoEnabled()); verify(mock); }
@Test public void testIsWarnEnabled() { expect(mock.isWarnEnabled()).andReturn(true); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); assertTrue(logger.isWarnEnabled()); verify(mock); }
@Test public void testIsErrorEnabled() { expect(mock.isErrorEnabled()).andReturn(true); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); assertTrue(logger.isErrorEnabled()); verify(mock); }
@Test public void testTrace() { mock.trace("a"); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.trace("a"); verify(mock); }
@Test public void testTraceWithException() { mock.trace("a", e); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.trace("a", e); verify(mock); }
@Test public void testDebug() { mock.debug("a"); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.debug("a"); verify(mock); }
@Test public void testDebugWithException() { mock.debug("a", e); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.debug("a", e); verify(mock); }
@Test public void testInfo() { mock.info("a"); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.info("a"); verify(mock); }
@Test public void testInfoWithException() { mock.info("a", e); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.info("a", e); verify(mock); }
@Test public void testWarn() { mock.warn("a"); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.warn("a"); verify(mock); }
@Test public void testWarnWithException() { mock.warn("a", e); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.warn("a", e); verify(mock); }
@Test public void testError() { mock.error("a"); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.error("a"); verify(mock); }
@Test public void testErrorWithException() { mock.error("a", e); replay(mock); final WaarpLogger logger = WaarpLoggerFactory.getInstance("mock"); logger.error("a", e); verify(mock); }