### Question:
OrderServiceImpl implements OrderService { @Override public OrderDTO findOne(String orderId) { Optional<OrderMaster> orderMaster = orderMasterRepository.findById(orderId); if( !orderMaster.isPresent() ){ throw new SellException(ResultEnum.ORDER_NOT_EXIST); } List<OrderDetail> orderDetailList = orderDetailRepository.findByOrderId(orderId); if(CollectionUtils.isEmpty(orderDetailList)){ throw new SellException(ResultEnum.ORDERDETAIL_NOT_EXIST); } OrderDTO orderDTO = new OrderDTO(); BeanUtils.copyProperties(orderMaster.get() , orderDTO); orderDTO.setOrderDetailList(orderDetailList); orderDTO.setOrderStatusStr(orderDTO.getOrderStatusStr(orderDTO.getOrderStatus())); return orderDTO; }  @Override @Transactional OrderDTO create(OrderDTO orderDTO); @Override OrderDTO findOne(String orderId); @Override Page<OrderDTO> findList(String buyerOpenid, Pageable pageable); @Override Page<OrderDTO> findList(Pageable pageable); @Override Page<OrderDTO> findOrderMastersByCreateTimeDesc(Pageable pageable); @Override List<OrderDTO> findListStats(String buyerOpenid, Integer orderStatus); @Override @Transactional OrderDTO cancel(OrderDTO orderDTO); @Override @Transactional OrderDTO finish(OrderDTO orderDTO); @Override @Transactional OrderDTO paid(OrderDTO orderDTO);  }### Answer:
@Test public void findOne() { OrderDTO result = orderService.findOne(ORDER_ID); log.info("【查询单个订单】 result={}" , result); Assert.assertEquals(ORDER_ID , result.getOrderId()); }