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