Order extends BusinessObject { public OrderDelivery Delivery() { if (orderDelivery == null) { orderDelivery = new OrderDelivery(this); } return orderDelivery; } Order(Tracker tracker); OrderDiscount Discount(); OrderAmount Amount(); OrderDelivery Delivery(); OrderCustomVars CustomVars(); String getOrderId(); double getTurnover(); int getStatus(); boolean isNewCustomer(); int getPaymentMethod(); boolean isConfirmationRequired(); Order setOrderId(String orderId); Order setTurnover(double turnover); Order setStatus(int status); Order setNewCustomer(boolean newCustomer); Order setPaymentMethod(int paymentMethod); Order setConfirmationRequired(boolean confirmationRequired);  }
@Test public void getDeliveryTest() { OrderDelivery orderDelivery = order.Delivery(); assertNotNull(order.Delivery()); assertEquals(orderDelivery, order.Delivery()); }