public class ProductSectionHandlerTest {
public void test() {
InputStream is = getClass().getResourceAsStream("/productsection.xml");
Injector injector = Guice.createInjector(new SaxParserModule());
Factory factory = injector.getInstance(ParseSax.Factory.class);
ProductSection result = factory.create(injector.getInstance(ProductSectionHandler.class)).parse(is);
assertEquals(result.toString(), ProductSection.builder().info("vCenter Information").property(
Property.builder().value("false").key("vmwareToolsEnabled").label("VMWare Tools Enabled status")
.description("VMWare Tools Enabled status").build()).property(
Property.builder().value("10.12.46.171").key("vmwareESXHost").label("VMWare ESXHost Ipaddress")
.description("VMWare ESXHost Ipaddress").build()).property(