System.out.println(handlers[i]);
System.err.println("Removing unexpected handler: " + handlers[i]);
    private TestHandler setUpLoggerForTest(String category) {        Logger logger = Logger.getLogger(category);        logger.setUseParentHandlers(false);        Handler[] handlers = logger.getHandlers();        for (int i = 0; i < handlers.length; i++) {            System.out.println(handlers[i]);            logger.removeHandler(handlers[i]);        }        TestHandler testHandler = new TestHandler();        logger.addHandler(testHandler);        return testHandler;    }