assertNull( masterPage.listeners );
assertNull( CoreTestUtil.getListeners( masterPage ) );
	public void testTheReferencesAfterClone( ) throws Exception	{		openDesign( "DesignElementCloneTest.xml" ); //$NON-NLS-1$		GraphicMasterPageHandle pageHandle = (GraphicMasterPageHandle) designHandle				.findMasterPage( "My Page" ); //$NON-NLS-1$		assertNotNull( pageHandle );		pageHandle.addListener( new MyListener( "listener1" ) ); //$NON-NLS-1$		pageHandle.addListener( new MyListener( "listener2" ) ); //$NON-NLS-1$		assertEquals( 2, pageHandle.getElement( ).listeners.size( ) );		assertEquals( design, pageHandle.getContainer( ) );		GraphicMasterPage masterPage = (GraphicMasterPage) pageHandle.copy( );		// the listeners should be set to null after clone.		assertNull( masterPage.listeners );		// the container should not be kept after clone		assertNull( masterPage.getContainer( ) );		DataSetHandle dataset = designHandle.findDataSet( "firstDataSet" ); //$NON-NLS-1$		SimpleDataSet newDataSet = (SimpleDataSet) dataset.copy( );		dataset = (DataSetHandle) newDataSet.getHandle( design );		SessionHandle sessionHandle = new DesignEngine( new DesignConfig( ) )				.newSessionHandle( ULocale.ENGLISH );		ReportDesignHandle newDesignHandle = sessionHandle.createDesign( );		newDesignHandle.getDataSets( ).paste( dataset );		designHandle.checkReport( );		List list = designHandle.getErrorList( );		assertEquals( 3, list.size( ) );		assertEquals( SemanticError.DESIGN_EXCEPTION_INVALID_ELEMENT_REF,				( (ErrorDetail) list.get( 0 ) ).getErrorCode( ) );		assertEquals( SemanticError.DESIGN_EXCEPTION_INVALID_STRUCTURE_REF,				( (ErrorDetail) list.get( 1 ) ).getErrorCode( ) );		assertEquals( SemanticError.DESIGN_EXCEPTION_INVALID_STRUCTURE_REF,				( (ErrorDetail) list.get( 2 ) ).getErrorCode( ) );		assertEquals( 1, designHandle.getWarningList( ).size( ) );	}