@Test public void testTab(){ Paragraph p01 = Paragraph.withPieces( ParagraphPiece.with("Bloc 1 Price :").withStyle().font(Font.CALIBRI).fontSize(Integer.toString(2*11)).create(), ParagraphPiece.with(" \t 3 200,00 $").withStyle().font(Font.CALIBRI).fontSize(Integer.toString(2*11)).create() ).addTab(TabAlign.RIGHT, 8931).create(); assertEquals(2, TestUtils.regexCount(p01.getContent(), "<w:pPr>")); assertEquals(1, TestUtils.regexCount(p01.getContent(), "<w:tabs>")); assertEquals(1, TestUtils.regexCount(p01.getContent(), "</w:tabs>")); assertEquals(2, TestUtils.regexCount(p01.getContent(), "</w:pPr>")); }