MetaDataDictionary.reset( );  MetaDataReader.read( this.getClass( ).getResourceAsStream(
loadMetaData( this.getClass( ).getResourceAsStream(
	public void testGetAllowedUnits( ) throws MetaDataParserException	{		MetaDataDictionary.reset( );		MetaDataReader.read( this.getClass( ).getResourceAsStream(				"input/AllowedChoicesTest.def" ) ); //$NON-NLS-1$		IElementDefn styleDefn = MetaDataDictionary.getInstance( ).getElement(				ReportDesignConstants.STYLE_ELEMENT );		PropertyDefn propDefn = (ElementPropertyDefn) styleDefn				.getProperty( Style.FONT_STYLE_PROP );		IChoiceSet choices = propDefn.getAllowedChoices( );		assertEquals( 2, choices.getChoices( ).length );		assertEquals( "normal", choices.getChoices( )[0].getName( ) ); //$NON-NLS-1$		assertEquals( "italic", choices.getChoices( )[1].getName( ) ); //$NON-NLS-1$		propDefn = (ElementPropertyDefn) styleDefn				.getProperty( Style.FONT_SIZE_PROP );		choices = propDefn.getAllowedChoices( );		assertEquals( 2, choices.getChoices( ).length );		assertEquals( "in", choices.getChoices( )[0].getName( ) ); //$NON-NLS-1$		assertEquals( "cm", choices.getChoices( )[1].getName( ) ); //$NON-NLS-1$		propDefn = (ElementPropertyDefn) styleDefn				.getProperty( Style.BACKGROUND_POSITION_X_PROP );		choices = propDefn.getAllowedChoices( );		assertEquals( 9, choices.getChoices( ).length );	}