// DocumentSettingsPart dsp = new DocumentSettingsPart();
// dsp.setJaxbElement(createSettings());
// mdp.addTargetPart(dsp);
Document document = (Document)XmlUtils.unmarshalString(documentXML);
wordMLPackage.getMainDocumentPart().setJaxbElement(document);
if (save) {
wordMLPackage.save(new File(System.getProperty("user.dir") + "/OUT_RunFontSelectorTests.docx"));
}
RunFontSelector rfs = createRunFontSelector(wordMLPackage);
// For each w:p, test w:r/w:t
for (int i=0; i<document.getContent().size(); i++) {
P p = (P)document.getContent().get(i);
PPr pPr = p.getPPr();
RPr rPr = ((R)p.getContent().get(0)).getRPr();
Text wmlText = (Text)XmlUtils.unwrap(((R)p.getContent().get(0)).getContent().get(0));