}
@Test
public void testSetConfigurationThrowsConfigurationException() throws Throwable {
FilterLogListener filterLogListener = new FilterLogListener(new PrintStream(new ByteArrayOutputStream()));
Configuration cfg = new SubConfiguration();
try {
filterLogListener.setConfiguration(cfg);
fail("Expected ConfigurationException to be thrown");
} catch (ConfigurationException ex) {
assertEquals("ex.getMessage()", "java.lang.NullPointerException", ex.getMessage());