### Question:
XMLDecoderHandler extends DefaultHandler { public Object getResult(){ return objects.pop(); }  @Override void startElement(String uri, String localName, String qName, Attributes attributes); @Override void endElement(String uri, String localName, String qName); @Override void characters(char[] ch, int start, int length); Object getResult();  }### Answer:
@Test public void parse_withCustomParser_success() throws Exception { XMLDecoderHandler handler = new XMLDecoderHandler(); InputStream stream = null; try { stream = new BufferedInputStream(new FileInputStream("target/test-classes/View.options")); SAXParserFactory.newInstance().newSAXParser().parse(stream, handler); checkParsedObject(handler.getResult()); } finally { if (stream != null) { stream.close(); } } }