MetaDataDictionary.getInstance( ).addElementDefn( newElement );
MetadataTestUtil.addElementDefn( MetaDataDictionary.getInstance( ), newElement );
	public void test_MISSING_ELEMENT_NAME( )	{		// This exception can never be caught during meta parsing.		// In the ElementDefnState, state will return when elementName = null or		// // "".		ElementDefn newElement = new ElementDefn( );		try		{			MetaDataDictionary.getInstance( ).addElementDefn( newElement );			fail( );		}		catch ( MetaDataException e )		{			assertEquals(					MetaDataException.DESIGN_EXCEPTION_MISSING_ELEMENT_NAME, e							.getErrorCode( ) );			assertEquals(					"Message:Missing element name when adding an element to the meta-data dictionary. Error code:MISSING_ELEMENT_NAME", //$NON-NLS-1$					e.getMessage( ).trim( ) );		}	}