}
public void testOneToMany() throws Exception
{
EntityTest test = (EntityTest) this.getInitialContext().lookup("EntityTestBean/remote");
Customer c = test.oneToManyCreate();
assertNotNull(c);
assertNotNull(c.getTickets());
Set<Ticket> tickets = c.getTickets();
assertTrue(tickets.size() > 0);
// test find
c = test.findCustomerById(c.getId());
assertNotNull(c);
assertNotNull(c.getTickets());
tickets = c.getTickets();
assertTrue(tickets.size() > 0);
// test 1-1
Address address = c.getAddress();
assertTrue(address != null);
assertTrue(address.getCity().equals("Boston"));
}