@Test
public void testTraceThrowsNullPointerException() throws Throwable {
Logger logger = new Logger();
logger.addListener(null);
Log bSHRequestListener = new BSHRequestListener();
bSHRequestListener.setLogger(logger);
try {
bSHRequestListener.trace("1\n", "l");
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
}
}