### Question:
TableLayout implements LayoutManager2 { public int getColumnCount() { return columnCount; } TableLayout();  TableLayout(int columnCount); int getColumnCount(); void setColumnCount(int columnCount); void setCellColspan(int row, int col, int colspan); void setCellRowspan(int row, int col, int rowspan); void setTablePadding(int hpadding, int vpadding); void setTablePadding(Insets insets); void setRowPadding(int row, Insets insets); void setColumnPadding(int col, Insets insets); void setCellPadding(int row, int col, Insets insets); void setTableWeightX(double weightx); void setRowWeightX(int row, double weightx); void setColumnWeightX(int col, double weightx); void setCellWeightX(int row, int col, double weightx); void setTableWeightY(double weightx); void setRowWeightY(int row, double weighty); void setColumnWeightY(int col, double weighty); void setCellWeightY(int row, int col, double weighty); void setTableFill(Fill fill); void setRowFill(int row, Fill fill); void setColumnFill(int col, Fill fill); void setCellFill(int row, int col, Fill fill); void setTableAnchor(Anchor anchor); void setRowAnchor(int row, Anchor anchor); void setColumnAnchor(int col, Anchor anchor); void setCellAnchor(int row, int col, Anchor anchor); Component createVerticalSpacer(); Component createHorizontalSpacer(); @Override float getLayoutAlignmentX(Container target); @Override float getLayoutAlignmentY(Container target); @Override void invalidateLayout(Container target); @Override void addLayoutComponent(Component comp, Object constraints); @Override void addLayoutComponent(String name, Component comp); @Override void removeLayoutComponent(Component comp); @Override void layoutContainer(Container parent); @Override Dimension minimumLayoutSize(Container parent); @Override Dimension preferredLayoutSize(Container parent); @Override Dimension maximumLayoutSize(Container parent); @Override String toString();  }### Answer:
@Test public void testCoolnessOfTableLayout() { TableLayout layout = new TableLayout(3); assertEquals(3, layout.getColumnCount()); }