handler.endDocument();
assertEquals(new String(streamResultHolder.toCharArray()), "<?xml version=\"1.0\" encoding=\"UTF-8\"?><E1 a1=\"test attribute\">test</E1>");//$NON-NLS-1$
}
public void testIsChildOf()throws Exception{
NodeDescriptor descriptor = NodeDescriptor.createNodeDescriptor("E1", null, true, null, null, null, false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
Element element1 = new Element(descriptor, handler);
descriptor = NodeDescriptor.createNodeDescriptor("E2", null, true, null, null, null, false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
Element element2 = new Element(descriptor, handler);
descriptor = NodeDescriptor.createNodeDescriptor("E3", null, true, null, null, null, false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
Element element3 = new Element(descriptor, handler);