ResponseExtractor implements ContentHandler { public String getEventId() { return eventId; }  String getEventId(); void startDocument(); void characters(final char[] ch, final int start, final int length); void endDocument(); void endElement(final String uri, final String localName,
            final String name); void endPrefixMapping(final String prefix); void ignorableWhitespace(final char[] ch, final int start,
            final int length); void processingInstruction(final String target, final String data); void setDocumentLocator(final Locator locator); void skippedEntity(final String name); void startElement(final String uri, final String localName,
            final String name, final Attributes atts); void startPrefixMapping(final String prefix, final String uri);  }
@Test public void testGetEventId() throws Exception { final String response = "<event id=\"JVoiceXMLTrack:end\"/>"; final TransformerFactory transformerFactory = TransformerFactory.newInstance(); final Transformer transformer = transformerFactory.newTransformer(); final StringReader reader = new StringReader(response); final Source source = new StreamSource(reader); final ResponseExtractor extractor = new ResponseExtractor(); final Result result = new SAXResult(extractor); transformer.transform(source, result); Assert.assertEquals("JVoiceXMLTrack:end", extractor.getEventId()); }