@BeforeEach
    public void setUp() throws Exception {
        stream = new ContentChannelOutputStream(new FailingContentChannel());
        logger = Logger.getLogger(ContentChannelOutputStream.class.getName());
        initUseParentHandlers = logger.getUseParentHandlers();
        logger.setUseParentHandlers(false);
        logger.setLevel(Level.ALL);
        logChecker = new LogCheckHandler();
        logger.addHandler(logChecker);
    }
Check error logging from ContentChannelOutputStream is sane.

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