public class TableBuilderTest {
@Test
public void testCreateTable() throws Exception {
TextDocument textDoc = TextDocument.newTextDocument();
TableBuilder tableBuilder = textDoc.getTableBuilder();
Table table = tableBuilder.newTable(4, 3, 2, 1);
assertEquals(4, table.getRowCount());
assertEquals(3, table.getColumnCount());
assertEquals(2, table.getHeaderRowCount());
assertEquals(1, table.getHeaderColumnCount());
assertNotNull(table.getCellByPosition(1, 1));