QueuedContentHandler extends DefaultHandler { public ContentHandler getWrappedContentHandler() { return wrappedHandler; } QueuedContentHandler(ContentHandler handler, int queueSizeLimit, SourcePosition sourcePosition); @Override void startDocument(); @Override void endDocument(); void drainQueue(); @Override void startElement(String uri, String localName, String qName, Attributes attributes); @Override void endElement(String uri, String localName, String qName); @Override void characters(char[] chars, int start, int length); void characters(String data); String getAttribute(String tag, String attributeName); void putAttribute(String tag, String attributeName, String data); ContentHandler getWrappedContentHandler();  }
@Test public void canConstruct() { wrappedHandler = new SimpleHandler(); handler = new QueuedContentHandler(wrappedHandler, 10, null); assertSame(wrappedHandler, handler.getWrappedContentHandler()); }