AssemblyData getAssemblyData() {
        return data;
    }
@Test
    public void testHandler() throws Exception {
        File file = BaseTest.getResourceAsFile(this, "assembly/sample-grok.xml");
        InputStream schemaStream = BaseTest.getResourceAsStream(this, "schema/grok-assembly.1.0.xsd");

        GrokHandler handler = new GrokHandler();
        SAXParser saxParser = XmlUtils.buildSecureSaxParser(schemaStream);
        XMLReader xmlReader = saxParser.getXMLReader();
        xmlReader.setErrorHandler(new GrokErrorHandler());
        xmlReader.setContentHandler(handler);

        InputStream inputStream = new FileInputStream(file);
        Reader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8);
        InputSource in = new InputSource(reader);

        xmlReader.parse(in);

        AssemblyData result = handler.getAssemblyData();
        assertEquals("OWASP Contributors", result.getCompanyName());
        assertEquals("GrokAssembly", result.getProductName());
        assertEquals("Inspects a .NET Assembly to determine Company, Product, and Version information", result.getComments());
        assertEquals(1, result.getNamespaces().size());
    }