Code example for AssertionFailedError

0
     * and setDocumentLocator(). Override the methods that are expected to be 
     * called. 
     */ 
    static class ThrowingHandler extends DefaultHandler {
        @Override public InputSource resolveEntity(String publicId, String systemId) {
            throw new AssertionFailedError();
        } 
        @Override public void notationDecl(String name, String publicId, String systemId) {
            throw new AssertionFailedError();
        } 
        @Override public void unparsedEntityDecl( 
                String name, String publicId, String systemId, String notationName) {
            throw new AssertionFailedError();
        } 
        @Override public void startPrefixMapping(String prefix, String uri) {
            throw new AssertionFailedError();
        } 
        @Override public void endPrefixMapping(String prefix) {
            throw new AssertionFailedError();
        } 
        @Override public void startElement(