MinimalPomParser extends DefaultHandler { private MinimalPomParser() { model = new PomModel.InternalModel(); } private  MinimalPomParser(); static PomModel parse(String path, InputStream is); PomModel getPomModel(); void startElement(final String uri,
                             final String localName,
                             final String qname,
                             final Attributes attrs); void endElement(final String uri,
                           final String localName,
                           final String qname); void characters(final char[] chars,
                           final int start,
                           final int len);  }
@Test public void testMinimalPomParser() { final InputStream is = MinimalPomParserTest.class.getResourceAsStream("pom.xml"); assertNotNull(is); final PomModel model = MinimalPomParser.parse(MinimalPomParserTest.class.getName().replace( '.', '/' ) + ".pom.xml", is); ParserTestUtil.assertPomModel(model); }