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