public void testTwoConsecutiveErroneousCompositeTags() throws ParserException {
String tag1 = "<custom>something";
String tag2 = "<custom></endtag>";
createParser(tag1 + tag2);
parser.setNodeFactory (new PrototypicalNodeFactory (new CustomTag (false)));
parseAndAssertNodeCount(2);
CustomTag customTag = (CustomTag)node[0];
assertEquals("child count",1,customTag.getChildCount());
assertFalse("custom tag should not be xml end tag",customTag.isEmptyXmlTag());
assertEquals("starting loc",0,customTag.getStartPosition ());