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