@Test
    final void testFailed() throws IOException {
        stream.send(createData());
        stream.send(createData());
        stream.send(createData());
        stream.flush();
        assertNull(logChecker.errorCounter.get(Level.INFO));
        assertEquals(1, logChecker.errorCounter.get(Level.FINE).intValue());
        assertEquals(2, logChecker.errorCounter.get(Level.FINEST).intValue());
    }
Check error logging from ContentChannelOutputStream is sane.

@author Steinar Knutsen
container-core/src/test/java/com/yahoo/container/jdisc/LoggingTestCase.java