public List<HintRule> getHintRules() {
        return hintRules;
    }
@Test
    public void testHandler() throws ParserConfigurationException, SAXException, IOException {
        File file = BaseTest.getResourceAsFile(this, "hints.xml");
        File schema = BaseTest.getResourceAsFile(this, "schema/dependency-hint.1.1.xsd");
        HintHandler handler = new HintHandler();

        SAXParserFactory factory = SAXParserFactory.newInstance();
        factory.setNamespaceAware(true);
        factory.setValidating(true);
        SAXParser saxParser = factory.newSAXParser();
        saxParser.setProperty(HintParser.JAXP_SCHEMA_LANGUAGE, HintParser.W3C_XML_SCHEMA);
        saxParser.setProperty(HintParser.JAXP_SCHEMA_SOURCE, schema);
        XMLReader xmlReader = saxParser.getXMLReader();
        xmlReader.setErrorHandler(new HintErrorHandler());
        xmlReader.setContentHandler(handler);

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

        List<HintRule> result = handler.getHintRules();
        assertEquals("two hint rules should have been loaded",2,result.size());
    }