}
public void testEqualityComparisonEntityConversion() {
EntityManager em = getOrCreateEntityManager();
em.getTransaction().begin();
Address address = new Address( "Street Id", "Fake Street", "Fake City", "Fake State", "Fake Zip" );
Phone phone1 = new Phone( "1", "555", "0001", address );
Phone phone2 = new Phone( "2", "555", "0002", address );
Phone phone3 = new Phone( "3", "555", "0003", address );
Phone phone4 = new Phone( "4", "555", "0004" );
Collection<Phone> phones = new ArrayList<Phone>( 3 );
phones.add( phone1 );
phones.add( phone2 );
phones.add( phone3 );
address.setPhones( phones );
em.persist( address );
em.persist( phone4 );
em.getTransaction().commit();