### Question:
Order { public OrderState getState() { return state; } private  Order();  Order(long consumerId, long restaurantId, DeliveryInformation deliveryInformation, List<OrderLineItem> orderLineItems); static ResultWithDomainEvents<Order, OrderDomainEvent> createOrder(long consumerId, Restaurant restaurant, DeliveryInformation deliveryInformation, List<OrderLineItem> orderLineItems); Long getId(); void setId(Long id); DeliveryInformation getDeliveryInformation(); Money getOrderTotal(); List<OrderDomainEvent> cancel(); List<OrderDomainEvent> undoPendingCancel(); List<OrderDomainEvent> noteCancelled(); List<OrderDomainEvent> noteApproved(); List<OrderDomainEvent> noteRejected(); List<OrderDomainEvent> noteReversingAuthorization(); ResultWithDomainEvents<LineItemQuantityChange, OrderDomainEvent> revise(OrderRevision orderRevision); List<OrderDomainEvent> rejectRevision(); List<OrderDomainEvent> confirmRevision(OrderRevision orderRevision); Long getVersion(); List<OrderLineItem> getLineItems(); OrderState getState(); long getRestaurantId(); Long getConsumerId();  }### Answer:
@Test public void shouldCreateOrder() { assertEquals(singletonList(new OrderCreatedEvent(CHICKEN_VINDALOO_ORDER_DETAILS, OrderDetailsMother.DELIVERY_ADDRESS, RestaurantMother.AJANTA_RESTAURANT_NAME)), createResult.events); assertEquals(OrderState.APPROVAL_PENDING, order.getState()); }