public void test() {
InputStream is = getClass().getResourceAsStream("/error.xml");
Error expected = expected();
ErrorHandler handler = injector.getInstance(ErrorHandler.class);
Error result = factory.create(handler).parse(is);
assertEquals(result.toString(), expected.toString());
}