Header extends Component implements TableContainer, VariableContainer { public java.util.List<Table> getTableList() { return getTableContainerImpl().getTableList(); } Header(StyleHeaderElement element); StyleHeaderElement getOdfElement(); boolean isVisible(); void setVisible(boolean isVisible); Table addTable(); Table addTable(int numRows, int numCols); Table getTableByName(String name); java.util.List<Table> getTableList(); TableBuilder getTableBuilder(); OdfElement getTableContainerElement(); OdfElement getVariableContainerElement(); VariableField declareVariable(String name, VariableType type); VariableField getVariableFieldByName(String name); Section appendSection(String name);  }
@Test public void testGetTableList() { try { TextDocument doc = TextDocument.newTextDocument(); Header header = doc.getHeader(); Table tab = header.addTable(); List<Table> listTab = header.getTableList(); Table tab1 = listTab.get(0); Assert.assertNotNull(tab1); Assert.assertEquals(tab, tab1); doc.save(ResourceUtilities.newTestOutputFile("headerTableOutput.odt")); } catch (Exception e) { Logger.getLogger(HeaderTest.class.getName()).log(Level.SEVERE, null, e); Assert.fail(e.getMessage()); } }