### Question:
OrderService implements OrderItemSaver { public void syncOrderTypes() { final List<OrderType> orderTypes = lmisServer.fetchOrderTypes(userService.getRegisteredUser()); dbUtil.withDao(OrderType.class, new DbUtil.Operation<OrderType, Void>() { @Override public Void operate(Dao<OrderType, String> dao) throws SQLException { saveOrderTypes(dao, orderTypes); return null; } }); }  List<OrderReason> syncOrderReasons(); List<OrderType> allOrderTypes(); List<OrderReason> allOrderReasons(); List<Order> all(); String getNextSRVNumber(); void saveOrder(final Order order); @Override void saveOrderItem(final OrderItem orderItem); void syncOrderTypes();  }### Answer:
@Test public void shouldGetTypesOfOrderFromDHIS2AndSaveThem() throws Exception { setUpSuccessHttpGetRequest(200, "orderTypes.json"); orderService.syncOrderTypes(); List<OrderType> orderTypes = orderTypeDao.queryForAll(); assertThat(orderTypes, contains(Routine, Emergency)); }