designHandle = new SessionHandle( ULocale.getDefault( ) ).createDesign( ); design = (ReportDesign) designHandle.module;
designHandle = new SessionHandle( ULocale.getDefault( ) ) .createDesign( ); design = (ReportDesign) designHandle.getModule( );
	public void testCopyNoColumnHeader2HasColumn( ) throws Exception	{		designHandle = new SessionHandle( ULocale.getDefault( ) ).createDesign( );		design = (ReportDesign) designHandle.module;		ElementFactory factory = new ElementFactory( design );		GridHandle grid1 = factory.newGridItem( "grid1", 2, 2 ); //$NON-NLS-1$		GridHandle grid2 = factory.newGridItem( "grid2", 2, 2 ); //$NON-NLS-1$		SlotHandle columns2 = grid2.getColumns( );		ColumnHandle column1InTable2 = (ColumnHandle) columns2.get( 0 );		ColumnHandle column2InTable2 = (ColumnHandle) columns2.get( 1 );		column1InTable2.setStringProperty( Style.COLOR_PROP,				IColorConstants.AQUA );		column2InTable2.setStringProperty( Style.COLOR_PROP,				IColorConstants.AQUA );		// removes all columns in the grid 1.		int numOfColumnsInTable1 = grid1.getColumns( ).getCount( );		for ( int i = 0; i < numOfColumnsInTable1; i++ )			grid1.getColumns( ).dropAndClear( 0 );		assertEquals( 0, grid1.getColumns( ).getCount( ) );		ColumnBandData adapter = grid1.copyColumn( 1 );		grid2.pasteColumn( adapter, 1, true );		assertEquals( 2, columns2.getCount( ) );		column1InTable2 = (ColumnHandle) columns2.get( 0 );		assertEquals( IColorConstants.BLACK, column1InTable2				.getProperty( Style.COLOR_PROP ) );		column2InTable2 = (ColumnHandle) columns2.get( 1 );		assertEquals( IColorConstants.AQUA, column2InTable2				.getProperty( Style.COLOR_PROP ) );	}