OdfDocument childDoc = embeddedDocs.get(childDocPath);
String embedFileName = childDoc.getDocumentPath();
OdfMediaType embedMediaType = OdfMediaType.getOdfMediaType(childDoc.getMediaTypeString());
//use '_' replace '/', because '/' is not the valid char in file path
embedFileName = embedFileName.replaceAll("/", "_") + "." + embedMediaType.getSuffix();
childDoc.save(TEST_FILE_FOLDER + embedFileName);
LOG.log(Level.INFO, "Save file : {0}", TEST_FILE_FOLDER + embedFileName);
OdfDocument embeddedDoc = OdfDocument.loadDocument(ResourceUtilities.getAbsolutePath(embedFileName));
Assert.assertEquals(embeddedDoc.getMediaTypeString(), embedMediaType.getMediaTypeString());
}
} catch (Exception ex) {