assertTrue(c.getFlights().size() == 1);
}
public void testFieldManyToMany() throws Exception
{
EntityTest test = (EntityTest) this.getInitialContext().lookup("EntityTestBean/remote");
test.fieldManyToManyCreate();
FieldFlight one = test.fieldFindFlightById(new Long(1));
assertTrue(one.getCompany().getName().equals("Air France"));
FieldFlight two = test.fieldFindFlightById(new Long(2));
assertTrue(two.getCompany().getName().equals("USAir"));
System.out.println("Air France customers");
for (FieldCustomer c : one.getCustomers())
{