throws Exception
{
final ByteArrayOutputStream arrayOutput = new ByteArrayOutputStream();
final PrintStream output = new PrintStream( arrayOutput );
final ConsoleLogger logger = new ConsoleLogger( MockConsoleLogger.LEVEL_ALL, output );
logger.debug( "ignore me!", new Throwable( "Ignore me aswell!" ) );
final String message = arrayOutput.toString();
final String expectedMessage =
"[DEBUG] ignore me!" + System.getProperty( "line.separator" );
assertTrue( "message", message.startsWith( expectedMessage ) );
assertTrue( "throwable message", -1 != message.indexOf( "Ignore me aswell!" ) );