@Test
void fail_fast_if_vehicles_next_visit_doesnt_exist() {

    PlanningVehicle vehicle = testVehicle(1);
    vehicle.setNextVisit(testVisit(2));
    VehicleRoutingSolution solution = solutionFromVisits(
            singletonList(vehicle),
            new PlanningDepot(testLocation(1)),
            singletonList(testVisit(3)));
    assertThatIllegalArgumentException()
            .isThrownBy(() -> RouteChangedEventPublisher.solutionToEvent(solution, this))
            .withMessageContaining("Visit");
}