CellContextInfo contextInfo = (CellContextInfo) data.getCells( ) .get( 0 ); assertEquals( 2, contextInfo.getRowSpan( ) );
assertEquals( 2, ApiTestUtil.getCopiedCell( data, 0 ).getRowSpan( design ) );
	public void testColumnCopy( ) throws Exception	{		openDesign( fileName );		GridHandle grid = (GridHandle) designHandle.findElement( "My grid1" ); //$NON-NLS-1$		assertNotNull( grid );		ColumnBandData data = grid.copyColumn( 1 );		assertEquals( 2, data.getCells( ).size( ) );		grid = (GridHandle) designHandle.findElement( "My grid2" ); //$NON-NLS-1$		assertNotNull( grid );		data = grid.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( ) );		grid = (GridHandle) designHandle.findElement( "My grid3" ); //$NON-NLS-1$		assertNotNull( grid );		try		{			data = grid.copyColumn( 1 );			fail( );		}		catch ( SemanticException e )		{			assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN,					e.getErrorCode( ) );		}		try		{			data = grid.copyColumn( 2 );			fail( );		}		catch ( SemanticException e )		{			assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN,					e.getErrorCode( ) );		}	}