testHandler.setFormatter(formatter);
testHandler.setFormatter((ExtendedFormatter)formatter);
    public void testDecide1(){        testLogger = Logger.getLogger("parent");        testLogger.setUseParentHandlers(false);        LoggerUtil.removeAllHandlers(testLogger);        PatternFormatter formatter = new PatternFormatter("%m%n");        testHandler.setFormatter(formatter);        testHandler.setLevel(Level.ALL);        LevelMatchFilter lmFilter = new LevelMatchFilter();        lmFilter.setLevelToMatch(Level.INFO.toString());        lmFilter.setAcceptOnMatch(true);        lmFilter.activateOptions();        testHandler.addFilter(lmFilter);        testLogger.addHandler((java.util.logging.Handler)testHandler);        testLogger.setLevel(Level.ALL);                testLogger.finest("-finest-");        testLogger.info("-info-");        testLogger.severe("-severe-");        testHandler.setExpected("-info-"+lineSeparator);        assertTrue("Must contain info",testHandler.compare());    }