obj.addProperty( propertyA ); obj.addProperty( propertyA );
MetadataTestUtil.addPropertyDefn( obj, propertyA ); MetadataTestUtil.addPropertyDefn( obj, propertyA );
	public void testAddSameProperty( )	{		PropertyDefnFake propertyA = new PropertyDefnFake( );		propertyA.setName( "property A" ); //$NON-NLS-1$		// add the property whose name exists in object definition		try		{			obj.addProperty( propertyA );			obj.addProperty( propertyA );			fail( "MetaDataException should be thrown because the name exists !" ); //$NON-NLS-1$		}		catch ( MetaDataException e )		{			assertEquals( MetaDataException.DESIGN_EXCEPTION_DUPLICATE_PROPERTY, e					.getErrorCode( ) );		}	}