Logger fo = new MockLogger("LogManagerTestFoo2", null);
fo.setLevel(Level.ALL);
assertTrue(mockManager.addLogger(fo));
Handler h = new ConsoleHandler();
Level l = h.getLevel();
assertNotSame(Level.OFF, h.getLevel());
// read configuration from stream
mockManager.readConfiguration(stream);
stream.close();
// level DO has effect
assertEquals(Level.WARNING, foo.getLevel());
// for non specified logger, level is reset to null
assertNull(fo.getLevel());
// read properties don't affect handler
assertNotSame(Level.OFF, h.getLevel());
assertSame(l, h.getLevel());
}