assertEquals( 1, data.getCells( ).size( ) );
assertEquals( 1, ApiTestUtil.getCopiedCells( data ).size( ) );
	public void testPasteMergedCells2NonMergedCells( ) throws Exception	{		openDesign( fileName );		TableHandle copyTable = (TableHandle) designHandle				.findElement( "CopyTable2" ); //$NON-NLS-1$		assertNotNull( copyTable );		TableHandle pasteTable = (TableHandle) designHandle				.findElement( "PasteTable2" ); //$NON-NLS-1$		assertNotNull( pasteTable );		SlotHandle detail = pasteTable.getDetail( );		RowHandle row1 = (RowHandle) detail.get( 0 );		RowHandle row2 = (RowHandle) detail.get( 1 );		assertEquals( 2, row1.getCells( ).getCount( ) );		assertEquals( 2, row2.getCells( ).getCount( ) );		SlotHandle columns = pasteTable.getColumns( );		assertEquals( 1, columns.getCount( ) );		ColumnHandle column1 = (ColumnHandle) columns.get( 0 );		assertEquals( 2, column1.getRepeatCount( ) );		assertEquals( IColorConstants.AQUA, column1				.getStringProperty( Style.COLOR_PROP ) );		ColumnBandData data = copyTable.copyColumn( 1 );		assertEquals( 1, data.getCells( ).size( ) );		// different layout, the exception is thrown.		assertFalse( pasteTable.canPasteColumn( data, 2, false ) );		assertTrue( pasteTable.canPasteColumn( data, 2, true ) );		try		{			pasteTable.pasteColumn( data, 2, false );			fail( );		}		catch ( SemanticException e )		{			assertEquals(					SemanticError.DESIGN_EXCEPTION_COLUMN_PASTE_DIFFERENT_LAYOUT,					e.getErrorCode( ) );		}		// paste cells in force.		// verify the layout of the pasted table.		pasteTable.pasteColumn( data, 2, true );		detail = pasteTable.getDetail( );		assertEquals( 2, detail.getCount( ) );		row1 = (RowHandle) detail.get( 0 );		row2 = (RowHandle) detail.get( 1 );		assertEquals( 2, row1.getCells( ).getCount( ) );		assertEquals( 1, row2.getCells( ).getCount( ) );		CellHandle cell1 = (CellHandle) row1.getCells( ).get( 1 );		assertEquals( 2, cell1.getRowSpan( ) );		// vefiry that the new cell has a label element.		assertEquals( 1, cell1.getContent( ).getCount( ) );		columns = pasteTable.getColumns( );		assertEquals( 2, columns.getCount( ) );		// verify column information		ColumnHandle column2 = (ColumnHandle) columns.get( 1 );		assertEquals( IColorConstants.YELLOW, column2				.getStringProperty( Style.COLOR_PROP ) );		assertEquals( 1, column2.getRepeatCount( ) );		column1 = (ColumnHandle) columns.get( 0 );		assertEquals( IColorConstants.AQUA, column1				.getStringProperty( Style.COLOR_PROP ) );		assertEquals( 1, column2.getRepeatCount( ) );	}