assertEquals("TYPES[getEventType()]", xpp.TYPES[type], xpp.TYPES[xpp.getEventType()]);
assertEquals("TYPES[getEventType()]", XmlPullParser.TYPES[type], XmlPullParser.TYPES[xpp.getEventType()]);
    public void checkParserStateNs(        XmlPullParser xpp,        int depth,        int type,        int nsCount,        String namespace,        String name,        boolean isEmpty,        int attribCount    ) throws XmlPullParserException, IOException    {        assertTrue("line number must be -1 or >= 1 not "+xpp.getLineNumber(),                   xpp.getLineNumber() == -1 || xpp.getLineNumber() >= 1);        assertTrue("column number must be -1 or >= 0 not "+xpp.getColumnNumber(),                   xpp.getColumnNumber() == -1 || xpp.getColumnNumber() >= 0);        // this methid can be used with enabled and not enabled namespaces        //assertEquals("PROCESS_NAMESPACES", true, xpp.getFeature(xpp.FEATURE_PROCESS_NAMESPACES));        assertEquals("TYPES[getEventType()]", xpp.TYPES[type], xpp.TYPES[xpp.getEventType()]);        assertEquals("getEventType()", type, xpp.getEventType());        assertEquals("getName()", name, xpp.getName());        assertEquals("getDepth()", depth, xpp.getDepth());        assertEquals("getNamespacesCount(getDepth())", nsCount, xpp.getNamespaceCount(depth));        assertEquals("getNamespace()", namespace, xpp.getNamespace());        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.getAttributeCount());    }