MetaDataDictionary.getInstance( ).addPredefinedStyle( style );
MetadataTestUtil.addPredefinedStyle( MetaDataDictionary .getInstance( ), style );
	public void test_MISSING_STYLE_NAME( )	{		// This exception can never be caught during meta parsing.		// In the ElementDefnState, state will return when elementName = null or		// // "".		PredefinedStyle style = new PredefinedStyle( );		try		{			MetaDataDictionary.getInstance( ).addPredefinedStyle( style );			fail( );		}		catch ( MetaDataException e )		{			assertEquals(					MetaDataException.DESIGN_EXCEPTION_MISSING_STYLE_NAME, e							.getErrorCode( ) );			assertEquals(					"Message:Missing style name when adding a predefined style to the meta-data dictionary. Error code:MISSING_STYLE_NAME", //$NON-NLS-1$					e.getMessage( ).trim( ) );		}	}