@Test
void removing_visit_should_be_successful() {

    Location depot = new Location(1, coordinates);
    Location visit = new Location(2, coordinates);
    when(repository.locations()).thenReturn(Arrays.asList(depot, visit));
    when(repository.find(visit.id())).thenReturn(Optional.of(visit));
    locationService.removeLocation(visit.id());
    verify(optimizer).removeLocation(visit);
    verify(distanceMatrix).removeLocation(visit);
    verify(repository).removeLocation(visit.id());
    verifyNoInteractions(eventPublisher);
}