@Test
void retry_when_adding_location_fails() {

    when(routingProblems.byName(problemName)).thenReturn(routingProblem);
    when(locationService.createLocation(any(Coordinates.class), anyString())).thenReturn(false);
    assertThatExceptionOfType(RuntimeException.class)
            .isThrownBy(() -> demoService.loadDemo(problemName))
            .withMessageContaining(depot.coordinates().toString());
    verify(locationService, times(DemoService.MAX_TRIES)).createLocation(any(Coordinates.class), anyString());
}