@Test
void addLocation(@Mock DistanceMatrixRow matrixRow) {

    when(distanceMatrix.addLocation(any())).thenReturn(matrixRow);
    assertThat(locationService.addLocation(location)).isTrue();
    verifyNoInteractions(repository);
    verify(distanceMatrix).addLocation(location);
    verify(optimizer).addLocation(location, matrixRow);
}