@Before
public void init() throws Exception {
source = new ByteArrayResource("<hello></hello>".getBytes());
illegalSource = new ByteArrayResource("<hello>".getBytes());
transformer = new Transformer() {
public void transform(Document document, String systemId) {
document.getRootElement().addElement("world");
}
};
transformer2 = new Transformer() {
public void transform(Document document, String systemId) {
document.getRootElement().addElement("hi");
}
};
document = SchemaUtil.readDocument(new ByteArrayInputStream("<doc></doc>".getBytes()), "", true);