Assert.assertNotNull(fileEntry);
// get "Object 1/content.xml"
OdfContentDom contentDom = embDoc.getContentDom();
XPath xpath = contentDom.getXPath();
TextPElement lastPara = (TextPElement) xpath.evaluate("//text:p[last()]", contentDom, XPathConstants.NODE);
addFrameForEmbeddedDoc(contentDom, lastPara, "Object in Object1");
Map<String, OdfDocument> emb_embDocs = embDoc.loadSubDocuments();
Assert.assertEquals(embDocsNumber + 1, emb_embDocs.size());
OdfDocument emb_embDoc = rootDocument.loadSubDocument(embDoc.getDocumentPath()+ pathOfSecondInnerDoc);
contentDom = emb_embDoc.getContentDom();
TextPElement para = (TextPElement) xpath.evaluate("//text:p[1]", contentDom, XPathConstants.NODE);
OdfTextSpan spanElem = new OdfTextSpan(contentDom);
spanElem.setTextContent(TEST_SPAN_TEXT);
para.appendChild(spanElem);
// embDoc.save(ResourceUtilities.newTestOutputFile("222debug.odt"));
rootDocument.save(TEST_FILE_EMBEDDED_EMBEDDED);
OdfDocument docWithdoubleEmbeddedDoc = OdfDocument.loadDocument(TEST_FILE_EMBEDDED_EMBEDDED);