TableLayout extends AbstractLayout { public int getColumns() { return cols; } TableLayout(int cols, double gapH, double gapV);  TableLayout(int cols); void layout(Container container); Dimension2D getPreferredSize(Container container); int getColumns();  }
@Test public void testSerialization() throws IOException, ClassNotFoundException { TableLayout original = new TableLayout(3, GAP_X, GAP_Y); TableLayout deserialized = TestUtils.serializeAndDeserialize(original); assertEquals(original.getColumns(), deserialized.getColumns()); }