### Question:
Logger implements LogProducer,Configurable { public synchronized static Logger getLogger (String name) { Logger l; try { l = NameRegistrar.get (NRPREFIX+name); } catch (NameRegistrar.NotFoundException e) { l = new Logger(); l.setName (name); } return l; } Logger(); Configuration getConfiguration(); @Override void setConfiguration(Configuration cfg); void addListener(LogListener l); void removeListener(LogListener l); void removeAllListeners(); static void log(LogEvent evt); void setName(String name); void destroy(); synchronized static Logger getLogger(String name); String getName(); boolean hasListeners(); static final String NRPREFIX; }### Answer:
@Test public void testGetLogger() throws Throwable { Logger result = Logger.getLogger("testLoggerName"); assertEquals("testLoggerName", result.getName(), "result.getName()"); }