ua = fopFactory.newFOUserAgent();
foEventHandler = factory.createFOEventHandler(
ua, MimeConstants.MIME_PDF, new NullOutputStream());
assertTrue(foEventHandler instanceof AreaTreeHandler);
ua = fopFactory.newFOUserAgent();
foEventHandler = factory.createFOEventHandler(
ua, MimeConstants.MIME_RTF, new NullOutputStream());
assertTrue(foEventHandler instanceof RTFHandler);
ua = fopFactory.newFOUserAgent();