### Question:
Configurator { public static LoggerStore createLoggerStore(final String configuratorType, final String resource) { final InitialLoggerStoreFactory factory = new InitialLoggerStoreFactory(); final Map<String, Object> data = new HashMap<String, Object>(); data.put(INITIAL_FACTORY, getFactoryClassName(configuratorType)); data.put(FILE_LOCATION, resource); return factory.createLoggerStore(data); }  static LoggerStore createLoggerStore(final String configuratorType, final String resource); static LoggerStore createLoggerStore(final String configuratorType, final InputStream resource); static final String LOG4J_DOM; static final String LOG4J_PROPERTY; static final String JDK; }### Answer:
@Test(expected = LoggerStoreCreationException.class) public void testInvalidConfiguratorType() throws IOException { createLoggerStore("blah", LOGGING_PROPERTIES); }
@Test public void testLog4JDOMConfigurator() throws IOException { runLoggerTest(LOG4J_XML_FILENAME, createLoggerStore(LOG4J_DOM, getInputStream(LOG4J_XML)), LEVEL_DEBUG); }
@Test public void testLog4JDOMConfiguratorNoDebug() throws IOException { runLoggerTest(LOG4J_XML_FILENAME, createLoggerStore(LOG4J_DOM, getInputStream(LOG4J_XML)), LEVEL_NONE); }
@Test public void testLog4JDOMConfiguratorNoLog() throws IOException { runLoggerTest(LOG4J_XML_FILENAME, createLoggerStore(LOG4J_DOM, getInputStream(LOG4J_XML))); }
@Test public void testLog4JPropertyConfigurator() throws IOException { runLoggerTest(LOG4J_PROPERTIES_FILENAME, createLoggerStore(LOG4J_PROPERTY, getInputStream(LOG4J_PROPERTIES)), LEVEL_DEBUG); }
@Test public void testLog4JPropertyConfiguratorNoDebug() throws IOException { runLoggerTest(LOG4J_PROPERTIES_FILENAME, createLoggerStore(LOG4J_PROPERTY, getInputStream(LOG4J_PROPERTIES)), LEVEL_NONE); }
@Test public void testLog4JPropertyConfiguratorNoLog() throws IOException { runLoggerTest(LOG4J_PROPERTIES_FILENAME, createLoggerStore(LOG4J_PROPERTY, getInputStream(LOG4J_PROPERTIES))); }
@Test public void testJDKConfigurator() throws IOException { runLoggerTest(JDK_FILENAME, createLoggerStore(JDK, getInputStream(LOGGING_PROPERTIES)), LEVEL_DEBUG); }
@Test public void testJDKConfiguratorNoDebug() throws IOException { runLoggerTest(JDK_FILENAME, createLoggerStore(JDK, getInputStream(LOGGING_PROPERTIES)), LEVEL_NONE); }
@Test public void testJDKConfiguratorNoLog() throws IOException { runLoggerTest(JDK_FILENAME, createLoggerStore(JDK, getInputStream(LOGGING_PROPERTIES))); }