tocstyle.addStyle("User_20_Index_20_9", 9);
tocstyle.addStyle("User_20_Index_20_10", 10);
LOG.info(tocstyle.toString());
Paragraph paragraph1 = doc.getParagraphByIndex(0, true);
TextTableOfContentElement textTableOfContentElement = doc
.createTOCwithStyle(paragraph1, tocstyle, true);
Assert.assertNotNull(textTableOfContentElement);
Node pnode = textTableOfContentElement.getNextSibling();
if (pnode.equals(paragraph1.getOdfElement())) {
Assert.assertTrue(true);
} else {
Assert.fail();
}