### Question:
CommonsLoggerFactory extends InternalLoggerFactory { @Override public InternalLogger newInstance(String name) { final Log logger = LogFactory.getLog(name); return new CommonsLogger(logger, name); }  @Override InternalLogger newInstance(String name);  }### Answer:
@Test public void testCreation() { InternalLogger logger = new CommonsLoggerFactory().newInstance("foo"); assertTrue(logger instanceof CommonsLogger); assertEquals("foo", logger.toString()); }