assertEquals("getNamespacesCount(getDepth())", 0, xpp.getNamespacesCount(depth));
assertEquals("getNamespacesCount(getDepth())", 0, xpp.getNamespaceCount(depth));
    public void checkParserState(        XmlPullParser xpp,        int depth,        int type,        String name,        String text,        boolean isEmpty,        int attribCount    ) throws Exception    {        assertEquals("PROCESS_NAMESPACES", false, xpp.getFeature(xpp.FEATURE_PROCESS_NAMESPACES));        assertEquals("TYPES[getType()]", xpp.TYPES[type], xpp.TYPES[xpp.getEventType()]);        assertEquals("getType()", type, xpp.getEventType());        assertEquals("getDepth()", depth, xpp.getDepth());        assertEquals("getPrefix()", null, xpp.getPrefix());        assertEquals("getNamespacesCount(getDepth())", 0, xpp.getNamespacesCount(depth));        if(xpp.getEventType() == xpp.START_TAG || xpp.getEventType() == xpp.END_TAG) {            assertEquals("getNamespace()", "", xpp.getNamespace());        } else {            assertEquals("getNamespace()", null, xpp.getNamespace());        }        assertEquals("getName()", name, xpp.getName());        assertEquals("getText()", printable(text), printable(xpp.getText()));        int [] holderForStartAndLength = new int[2];        char[] buf = xpp.getTextCharacters(holderForStartAndLength);        if(buf != null) {            String s = new String(buf, holderForStartAndLength[0], holderForStartAndLength[1]);            assertEquals("getText(holder)", printable(text), printable(s));        } else {            assertEquals("getTextCharacters()", null, text);        }        if(type == xpp.START_TAG) {            assertEquals("isEmptyElementTag()", isEmpty, xpp.isEmptyElementTag());        } else {            try {                xpp.isEmptyElementTag();                fail("isEmptyElementTag() must throw exception if parser not on START_TAG");            } catch(XmlPullParserException ex) {            }        }        assertEquals("getAttributeCount()", attribCount, xpp.getAttributesCount());    }