class RerouteUtil {

  public boolean routesEquals(List<DriveOrder> ordersA, List<DriveOrder> ordersB) {
    List<Route> routesA = ordersA.stream()
        .map(order -> order.getRoute())
        .collect(Collectors.toList());
    List<Route> routesB = ordersB.stream()
        .map(order -> order.getRoute())
        .collect(Collectors.toList());
    return Objects.equals(routesA, routesB);
  }

  @Inject public  RerouteUtil(Router router,
                     VehicleControllerPool vehicleControllerPool,
                     InternalTransportOrderService transportOrderService,
                     DefaultDispatcherConfiguration configuration);

}