Customer cref = Ebean.getReference(Customer.class, c0.getId());
order.setCustomer(cref);
order.setStatus(Status.SHIPPED);
OrderDetail orderDetail0 = order.getDetails().get(0);
orderDetail0.setShipQty(300);
orderDetail0.setUnitPrice(56.98d);
// remove one of the details...
OrderDetail removedDetail = order.getDetails().remove(2);
Assert.assertNotNull(removedDetail);
Product p = Ebean.getReference(Product.class, 1);
OrderDetail newDetail = new OrderDetail(p, 899, 12.12d);
// newDetail.setOrder(order);
order.addDetail(newDetail);
EbeanServer server = Ebean.getServer(null);