@Test
void removing_depot_should_be_successful_when_it_is_the_last_location() {

    when(repository.locations()).thenReturn(Collections.singletonList(location));
    when(repository.find(location.id())).thenReturn(Optional.of(location));
    locationService.removeLocation(location.id());
    verify(repository).removeLocation(location.id());
    verify(optimizer).removeLocation(location);
    verifyNoInteractions(eventPublisher);
    // TODO remove location from distance matrix
}