wa2.setFormatter(new DummyFormatter());
wa2.setFormatter((ExtendedFormatter)new DummyFormatter());
    public void testPartiallyConfiguredHandler() {        WriterHandler wa1 = new WriterHandler("foo");        // set a bogus writer        wa1.setWriter(new CharArrayWriter());        wa1.activateOptions();        assertFalse(wa1.isActive());        WriterHandler wa2 = new WriterHandler("foo 2");        // set a bogus writer        wa2.setFormatter(new DummyFormatter());        wa2.activateOptions();        assertFalse(wa2.isActive());      }