* 7) DOCA/ is saved in a document for its own
*/
@Test
public void testembeddedDocumentWithSubPath() {
try {
OdfTextDocument odtDoc1 = OdfTextDocument.newTextDocument();
odtDoc1.insertDocument(OdfTextDocument.newTextDocument(), "DOCA/");
OdfDocument docA = odtDoc1.loadSubDocument("DOCA");
docA.newImage(ResourceUtilities.getURI(TEST_PIC));
docA.insertDocument(OdfSpreadsheetDocument.newSpreadsheetDocument(), "DOCB/");
OdfFileDom contentA = docA.getContentDom();
XPath xpath = contentA.getXPath();
TextPElement lastPara = (TextPElement) xpath.evaluate("//text:p[last()]", contentA, XPathConstants.NODE);
addFrameForEmbeddedDoc(contentA, lastPara, "./DOCB");
OdfDocument docB = odtDoc1.loadSubDocument("DOCA/DOCB/");
docB.newImage(ResourceUtilities.getURI(TEST_PIC_ANOTHER));
OdfTable table1 = docB.getTableList().get(0);
table1.setTableName("NewTable");
Assert.assertNotNull(docB);
Assert.assertNull(odtDoc1.loadSubDocument("DOCB/"));
docA.save(TEST_FILE_FOLDER + TEST_FILE_EMBEDDED_INCLUDED_SAVE_OUT);
OdfDocument testLoad = OdfDocument.loadDocument(TEST_FILE_FOLDER + TEST_FILE_EMBEDDED_INCLUDED_SAVE_OUT);
OdfFileEntry imageEntry = testLoad.getPackage().getFileEntry(OdfPackage.OdfFile.IMAGE_DIRECTORY.getPath() + SLASH + TEST_PIC);
Assert.assertNotNull(imageEntry);
Map<String, OdfDocument> embDocs = testLoad.loadSubDocuments(OdfDocument.OdfMediaType.SPREADSHEET);