Cell cell = table.getCellByPosition(1, 1);
cell.setCellBackgroundColor(Color.BLUE);
cell.getStyleHandler().getTableCellPropertiesForWrite().setBackgroundColor(Color.BLACK);
Assert.assertEquals(Color.BLACK, cell.getStyleHandler().getTableCellPropertiesForRead().getBackgroundColor());
Assert.assertEquals(Color.BLACK, cell.getCellBackgroundColor());
Cell newCell = table.appendRow().getCellByIndex(1);
Assert.assertEquals(Color.BLACK, newCell.getStyleHandler().getBackgroundColor());
}
@Test
public void testSettingNullBackgroundOnCell() throws Exception {