MetaDataDictionary.getInstance( ).addChoiceSet( choices1 ); MetaDataDictionary.getInstance( ).addChoiceSet( choices2 );
MetadataTestUtil.addChoiceSet( MetaDataDictionary.getInstance( ), choices1 ); MetadataTestUtil.addChoiceSet( MetaDataDictionary.getInstance( ), choices2 );
	public void test_DUPLICATE_CHOICE_SET_NAME( )	{		ChoiceSet choices1 = new ChoiceSet( "choices1" ); //$NON-NLS-1$ 		ChoiceSet choices2 = new ChoiceSet( "choices1" ); //$NON-NLS-1$ 		try		{			MetaDataDictionary.getInstance( ).addChoiceSet( choices1 );			MetaDataDictionary.getInstance( ).addChoiceSet( choices2 );			fail( );		}		catch ( MetaDataException e )		{			assertEquals(					MetaDataException.DESIGN_EXCEPTION_DUPLICATE_CHOICE_SET_NAME,					e.getErrorCode( ) );			assertEquals(					"Message:Duplicate choice set names when adding the choice set [choices1] to the meta-data dictionary. Error code:DUPLICATE_CHOICE_SET_NAME", //$NON-NLS-1$ 					e.getMessage( ).trim( ) );			//$NON-NLS-1$ 		}	}