assertEquals(LogManager.getRootLogger(), LogManager.getLogger(LogManager.ROOT_LOGGER_NAME));
}
@Test
public void getStream() {
final LoggerStream stream = logger.getStream(Level.DEBUG);
stream.println("Debug message 1");
stream.print("Debug message 2");
stream.println();
stream.println(); // verify blank log message
stream.print("Debug message 3\n");
stream.print("\r\n"); // verify windows EOL works
assertEquals(5, results.size());
assertThat("Incorrect message", results.get(0), startsWith(" DEBUG Debug message 1"));
assertThat("Incorrect message", results.get(1), startsWith(" DEBUG Debug message 2"));
assertEquals("Message should be blank-ish", " DEBUG ", results.get(2));
assertThat("Incorrect message", results.get(3), startsWith(" DEBUG Debug message 3"));