List<Order> list = query.findList();
// list.get(0).getShipDate();
Order order = list.get(0);
BeanState beanStateOrder = Ebean.getBeanState(order);
Assert.assertNotNull(beanStateOrder.getLoadedProps());
// Assert.assertTrue(beanStateOrder.getLoadedProps().contains("id"));
Assert.assertTrue(beanStateOrder.getLoadedProps().contains("status"));
Assert.assertTrue(beanStateOrder.getLoadedProps().contains("shipments"));
Assert.assertTrue(beanStateOrder.getLoadedProps().contains("customer"));
Customer customer = order.getCustomer();
BeanState beanStateCustomer = Ebean.getBeanState(customer);
Assert.assertTrue(beanStateCustomer.isReference());
customer.getName();
Assert.assertNotNull(beanStateCustomer.getLoadedProps());
Assert.assertTrue(beanStateCustomer.getLoadedProps().contains("name"));
Assert.assertTrue(beanStateCustomer.getLoadedProps().contains("status"));
Assert.assertFalse(beanStateCustomer.getLoadedProps().contains("billingAddress"));
customer.getName();
Address billingAddress = customer.getBillingAddress();
System.out.println(billingAddress);