@Test
public void testZeroDimensional() {
when(policyManager.execute(isA(String.class), isA(PolicyContext.class))).thenReturn(success);
AbstractComponent c;
TableStructure structure;
c = new MockLeafComponent();
structure = TableViewPolicy.getTableStructure(c);
assertEquals(structure.getType(), TableType.ZERO_DIMENSIONAL);
assertEquals(structure.getRowCount(), 1);
assertEquals(structure.getColumnCount(), 1);
assertSame(structure.getValue(0, 0), c);
c = new MockFeedComponent();
structure = TableViewPolicy.getTableStructure(c);
assertEquals(structure.getType(), TableType.ZERO_DIMENSIONAL);
assertEquals(structure.getRowCount(), 1);
assertEquals(structure.getColumnCount(), 1);
assertSame(structure.getValue(0, 0), c);
c = new MockEvaluator(new MockFeedComponent());
structure = TableViewPolicy.getTableStructure(c);
assertEquals(structure.getType(), TableType.ZERO_DIMENSIONAL);
assertEquals(structure.getRowCount(), 1);
assertEquals(structure.getColumnCount(), 1);
assertSame(structure.getValue(0, 0), c);
}