fh.setFormatter(pf);
fh.setFormatter((ExtendedFormatter)pf);
    public void testSimple() throws Exception {        Logger minimumTest = Logger.getLogger("MinimumTest");        minimumTest.setLevel(Level.INFO);        minimumTest.setUseParentHandlers(false);        SimpleFormatter pf = new SimpleFormatter();        FileHandler fh = new FileHandler("foo");        fh.setFormatter(pf);        fh.setAppend(false);        fh.setBufferedIO(false);        fh.setImmediateFlush(true);        fh.setFile("output/simple");        fh.activateOptions();        LoggerUtil.removeAllHandlers(minimumTest);        minimumTest.addHandler(fh);                common();        Transformer.transform(          "output/simple", FILTERED,          new Filter[] { new LineNumberFilter(), new SunReflectFilter(),                          new JunitTestRunnerFilter() });        assertTrue(Compare.compare(FILTERED, "witness/simple"));      }