TextDocument doc = TextDocument.newTextDocument();
Table table = Table.newTable(doc, 2, 2);
table.setTableName("ImageTable");
Cell cell = table.getCellByPosition(0, 0);
cell.setImage(ResourceUtilities.getURI("image_list_item.png"));
doc.save(ResourceUtilities.newTestOutputFile("ImageCellTable.odt"));
// load the document again.
doc = TextDocument.loadDocument(ResourceUtilities.getTestResourceAsStream("ImageCellTable.odt"));
table = doc.getTableByName("ImageTable");
cell = table.getCellByPosition(0, 0);