assertEquals( 1, adapter.getColumns( ).size( ) );
	public void testGetColumns( )	{		TableHandle table = designHandle.getElementFactory( )				.newTableItem( "table" );		TableHandleAdapter adapter = new TableHandleAdapter( table, null );		SlotHandle slot = table.getSlot( ListingElement.HEADER_SLOT );		RowHandle row = designHandle.getElementFactory( ).newTableRow( );		CellHandle cell = designHandle.getElementFactory( ).newCell( );		try		{			cell.setIntProperty( Cell.COLUMN_PROP, 1 );			slot.add( row );			row.getSlot( TableRow.CONTENT_SLOT ).add( cell );		}		catch ( Exception ex )		{			ex.printStackTrace( );			fail( "error add cell to table" );		}		slot = table.getSlot( ListingElement.GROUP_SLOT );		TableGroup group = new TableGroup( );		try		{			row = designHandle.getElementFactory( ).newTableRow( );			cell = designHandle.getElementFactory( ).newCell( );			slot.add( group.handle( designHandle.getDesign( ) ) );			//			group.getSlot(GroupElement.HEADER_SLOT).add(row.getElement());			//			row.getSlot(TableRow.CONTENT_SLOT).add(cell);			row = designHandle.getElementFactory( ).newTableRow( );			cell = designHandle.getElementFactory( ).newCell( );			cell.setIntProperty( Cell.COLUMN_PROP, 1 );			group.getSlot( GroupElement.FOOTER_SLOT ).add( row.getElement( ) );			row.getSlot( TableRow.CONTENT_SLOT ).add( cell );			cell = designHandle.getElementFactory( ).newCell( );			row.getSlot( TableRow.CONTENT_SLOT ).add( cell );			cell.setIntProperty( Cell.COLUMN_PROP, 1 );		}		catch ( Exception ex )		{			ex.printStackTrace( );			fail( "error add cell to table" );		}		slot = table.getSlot( ListingElement.DETAIL_SLOT );		ColumnHandle column = designHandle.getElementFactory( )				.newTableColumn( );		row = designHandle.getElementFactory( ).newTableRow( );		cell = designHandle.getElementFactory( ).newCell( );		SlotHandle columnSlot = table.getSlot( TableItem.COLUMN_SLOT );		try		{			slot.add( row );			columnSlot.add( column );			row.getSlot( TableRow.CONTENT_SLOT ).add( cell );			cell.setIntProperty( Cell.COLUMN_PROP, 1 );		}		catch ( Exception ex )		{			ex.printStackTrace( );			fail( "error add cell to table" );		}		slot = table.getSlot( ListingElement.FOOTER_SLOT );		row = designHandle.getElementFactory( ).newTableRow( );		cell = designHandle.getElementFactory( ).newCell( );		try		{			slot.add( row );			row.getSlot( TableRow.CONTENT_SLOT ).add( cell );			cell.setIntProperty( Cell.COLUMN_PROP, 1 );		}		catch ( Exception ex )		{			ex.printStackTrace( );			fail( "error add cell to table" );		}		adapter = new TableHandleAdapter( table, null );		for ( Iterator it = adapter.getChildren( ).iterator( ); it.hasNext( ); )		{			Object obj = it.next( );			assertTrue( obj instanceof CellHandle );		}		assertEquals( 1, adapter.getColumns( ).size( ) );	}