Table swTable = Table.newTable(odt, 1, 5);
CellRange swCellRange = swTable.getCellRangeByPosition("A1", "E2");
Cell swCell = swTable.getCellByPosition("E2");
swCell.setStringValue("Merge A1:E2");
swCellRange.merge();
odt.save(ResourceUtilities.newTestOutputFile(odtfilename + "MergeTextExpandCell.odt"));
swTable = odt.getTableList().get(0);
Assert.assertTrue(swTable.getColumnCount() == 1);
Assert.assertTrue(swTable.getRowCount() == 1);
} catch (Exception ex) {
Logger.getLogger(TableCellRangeTest.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);