}
@Test
public void testExtractFromDocumentWithAlienElement() throws Exception {
TextDocument document = TextDocument.newTextDocument();
document.getContentRoot().appendChild(new OdfAlienElement(document.getContentDom(), OdfName.newName("instance")));
document.addParagraph("Some text");
TextExtractor extractor = TextExtractor.newOdfTextExtractor(document.getContentRoot());
String text = extractor.getText();
Assert.assertEquals("\nSome text", text);
}