assertEquals(3, doc.getChildCount());
assertTrue(doc.getChild(0) instanceof Comment);
assertTrue(doc.getChild(1) instanceof Element);
assertTrue(doc.getChild(2) instanceof Comment);
doc.insertChild(new ProcessingInstruction("target", "data"),1);
assertTrue(doc.getChild(0) instanceof Comment);
assertTrue(doc.getChild(1) instanceof ProcessingInstruction);
assertTrue(doc.getChild(2) instanceof Element);
assertTrue(doc.getChild(3) instanceof Comment);
doc.insertChild(new ProcessingInstruction("epilog", "data"),3);
assertTrue(doc.getChild(0) instanceof Comment);
assertTrue(doc.getChild(1) instanceof ProcessingInstruction);
assertTrue(doc.getChild(2) instanceof Element);
assertTrue(doc.getChild(3) instanceof ProcessingInstruction);
assertTrue(doc.getChild(4) instanceof Comment);