trailingP1.modifyParagraphStyles(0, trailingP1.paragraphLimit(0), C_MOD);
MText trailingP2 = new StyledText("iii\n", PLAIN);
trailingP2.modifyParagraphStyles(0, 0, D_MOD);
trailingP2.modifyParagraphStyles(trailingP2.length(), trailingP2.length(), B_MOD);
if (!trailingP2.paragraphStyleAt(trailingP2.length()-1).equals(D_STYLE)) {
errln("Style incorrect in trailingP2");
}
if (!trailingP2.paragraphStyleAt(trailingP2.length()).equals(B_STYLE)) {
errln("Ending style incorrect in trailingP2");
}