source: class OrderServiceImplTest {
  
      private OrderRepository orderRepository;
      private OrderServiceImpl orderService;
      private final String restaurantId;
      private UserInfo userInfo;
  
      @Test
      public void whenCreateOrder_returnCreatedOrder() {
  
target:         List<ItemQuantity> itemQuantities = new ArrayList<>();
          itemQuantities.add(generateItemQuantity("Menu item 1", 11, 2));
          itemQuantities.add(generateItemQuantity("Menu item 2", 12, 3));
          Order order = generateOrder(restaurantId, itemQuantities, "Special", userInfo);
          when(orderRepository.save(order)).thenReturn(order);
  
          Order savedOrder = orderService.createOrder(order);
          assertThat(savedOrder.getTotalPrice()).isEqualTo(2 * 11 + 3 * 12);
          assertThat(savedOrder.getOrderTime()).isGreaterThan(0);
      }
  
  }