checkParserStateNs(xpp, 1, xpp.START_TAG, null, 0, "", "foo", null, false, 1);
checkParserStateNs(xpp, 1, XmlPullParser.START_TAG, null, 0, "", "foo", null, false, 1);
    public void testTokenEventEquivalency() throws Exception {        XmlPullParser xpp = factory.newPullParser();        assertEquals(true, xpp.getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES));        xpp.setInput(new StringReader(MISC_XML));        boolean processDocdecl = xpp.getFeature(xpp.FEATURE_PROCESS_DOCDECL);        // make sure entity "test" can be resolved even when parser is not parsing DOCDECL        if(!processDocdecl) {            xpp.defineEntityReplacementText("test", "This is test! Do NOT Panic!");        }        checkParserStateNs(xpp, 0, xpp.START_DOCUMENT, null, 0, null, null, null, false, -1);        xpp.next();        checkParserStateNs(xpp, 1, xpp.START_TAG, null, 0, "", "foo", null, false, 1);        checkAttribNs(xpp, 0, null, "", "attrName", "attrVal");        xpp.next();        checkParserStateNs(xpp, 1, xpp.TEXT, null, 0, null, null,                           "barThis is test! Do NOT Panic!This is test! Do NOT Panic!< &>'\" < vo<o ",                           false, -1);        xpp.next();        checkParserStateNs(xpp, 1, xpp.END_TAG, null, 0, "", "foo", null, false, -1);        xpp.next();        checkParserStateNs(xpp, 0, xpp.END_DOCUMENT, null, 0, null, null, null, false, -1);    }