slotDefn.build( );
MetadataTestUtil.build( slotDefn );
	public void testBuild( ) throws MetaDataException	{		slotDefn = new SlotDefn( );		try		{			// Test for empty contents type			slotDefn.build( );			fail( );		}		catch ( MetaDataException e )		{		}		try		{			// test for null displayNameID			slotDefn.addType( ReportDesignConstants.FREE_FORM_ITEM );			slotDefn.addType( "Label" ); //$NON-NLS-1$			slotDefn.build( );			fail( );		}		catch ( MetaDataException e1 )		{		}		// succeed in building		slotDefn.setDisplayNameID( "Element.ReportDesign.slot.body" ); //$NON-NLS-1$		slotDefn.build( );		assertFalse( slotDefn.canContain( MetaDataDictionary.getInstance( )				.getElement( "DataSource" ) ) ); //$NON-NLS-1$		assertTrue( slotDefn.canContain( MetaDataDictionary.getInstance( )				.getElement( "Label" ) ) ); //$NON-NLS-1$		assertEquals( "Body", slotDefn.getDisplayName( ) ); //$NON-NLS-1$	}