void () { final MyElement myElement = createElement("<a><abstract-child/><generic-value/><bar/></a>", MyElement.class); final XmlTag tag = myElement.getXmlTag(); assertEquals(1, myElement.getCustomChildren().size()); assertInstanceOf(getDomManager().getDomElement(tag.getSubTags()[0]), MyAbstractElement.class); assertInstanceOf(getDomManager().getDomElement(tag.getSubTags()[1]), GenericDomValue.class); assertInstanceOf(getDomManager().getDomElement(tag.getSubTags()[2]), MyElement.class); }