obj.addProperty( propertyA ); obj.addProperty( propertyB ); obj.addProperty( propertyC );
MetadataTestUtil.addPropertyDefn( obj, propertyA ); MetadataTestUtil.addPropertyDefn( obj, propertyB ); MetadataTestUtil.addPropertyDefn( obj, propertyC );
	public void testAddThreeProperty( )	{		PropertyDefnFake propertyA = new PropertyDefnFake( );		PropertyDefnFake propertyB = new PropertyDefnFake( );		PropertyDefnFake propertyC = new PropertyDefnFake( );		propertyA.setName( "property A" ); //$NON-NLS-1$		propertyB.setName( "property B" ); //$NON-NLS-1$		propertyC.setName( "property C" ); //$NON-NLS-1$		// add three properties		try		{			obj.addProperty( propertyA );			obj.addProperty( propertyB );			obj.addProperty( propertyC );		}		catch ( MetaDataException e )		{			fail( );		}		// iterate all properties		Iterator iter = obj.getPropertyIterator( );		while ( iter.hasNext( ) )		{			PropertyDefn property = (PropertyDefn) iter.next( );			assertTrue( property.getName( ).equals( "property A" ) || //$NON-NLS-1$					property.getName( ).equals( "property B" ) || //$NON-NLS-1$					property.getName( ).equals( "property C" ) ); //$NON-NLS-1$		}		// find property via name		assertSame( propertyA, obj.findProperty( propertyA.getName( ) ) );		assertSame( propertyB, obj.findProperty( propertyB.getName( ) ) );		assertSame( propertyC, obj.findProperty( propertyC.getName( ) ) );		// find an unexisting property		assertNull( obj.findProperty( "Unexisting" ) ); //$NON-NLS-1$	}