assertEquals( 1, data.getCells( ).size( ) ); TableColumn column = data.getColumn( );
assertEquals( 1, ApiTestUtil.getCopiedCells( data ).size( ) ); TableColumn column = ApiTestUtil.getCopiedColumn( data );
	public void testColumnCopy( ) throws Exception	{		openDesign( fileName );		TableHandle table = (TableHandle) designHandle				.findElement( "My table1" ); //$NON-NLS-1$		assertNotNull( table );		ColumnBandData data = table.copyColumn( 1 );		assertEquals( 2, data.getCells( ).size( ) );		table = (TableHandle) designHandle.findElement( "My table2" ); //$NON-NLS-1$		assertNotNull( table );		data = table.copyColumn( 2 );		assertEquals( 1, data.getCells( ).size( ) );		TableColumn column = data.getColumn( );		assertEquals( 1, column				.getIntProperty( design, TableColumn.REPEAT_PROP ) );		assertEquals(				"red", column.getStringProperty( design, Style.COLOR_PROP ) ); //$NON-NLS-1$				CellContextInfo contextInfo = (CellContextInfo) data.getCells( )				.get( 0 );		assertEquals( 2, contextInfo.getRowSpan( ) );		table = (TableHandle) designHandle.findElement( "My table3" ); //$NON-NLS-1$		assertNotNull( table );		assertFalse( table.canCopyColumn( 1 ) );		try		{			data = table.copyColumn( 1 );			fail( );		}		catch ( SemanticException e )		{			assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN,					e.getErrorCode( ) );		}		assertFalse( table.canCopyColumn( 2 ) );		try		{			data = table.copyColumn( 2 );			fail( );		}		catch ( SemanticException e )		{			assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN,					e.getErrorCode( ) );		}		table = (TableHandle) designHandle.findElement( "My table4" ); //$NON-NLS-1$		assertNotNull( table );		assertFalse( table.canCopyColumn( 1 ) );		try		{			data = table.copyColumn( 1 );			fail( );		}		catch ( SemanticException e )		{			assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN,					e.getErrorCode( ) );		}		data = table.copyColumn( 2 );		assertEquals( 2, data.getCells( ).size( ) );		contextInfo = (CellContextInfo) data.getCells( ).get( 1 );		assertEquals( IColorConstants.BLACK, contextInfo.getCell( )				.getProperty( design, Style.COLOR_PROP ) );		// TODO test on cells with dropping in group header	}