Assert.assertSame(((SAXTransformerFactory) TransformerFactory.newInstance()).newTransformerHandler().getClass(), transformerHandler.getClass());
}
}
public void checkXmlEvent(Class<?> clazz, boolean fake) throws Exception {
DTD dtd = invokeMethod(clazz.newInstance(), "eventDTD");
XMLEventFactory factory = invokeMethod(clazz.newInstance(), "eventFactory");
Assert.assertEquals(__XMLEventFactory.class.getName(), factory.getClass().getName());
if (fake) {
Assert.assertEquals(FakeDTD.class.getName(), dtd.getClass().getName());
} else {
Assert.assertSame(XMLEventFactory.newInstance().createDTD("blah").getClass(), dtd.getClass());
}
}