@Test void addLocation_should_validate_arguments() { assertThatNullPointerException().isThrownBy(() -> locationService.addLocation(null)); }
public synchronized boolean addLocation(Location location) { return submitToPlanner(Objects.requireNonNull(location)); }
LocationService { public synchronized boolean addLocation(Location location) { return submitToPlanner(Objects.requireNonNull(location)); } }
LocationService { public synchronized boolean addLocation(Location location) { return submitToPlanner(Objects.requireNonNull(location)); } @Autowired  LocationService(
            LocationRepository repository,
            RouteOptimizer optimizer,
            DistanceMatrix distanceMatrix,
            ApplicationEventPublisher eventPublisher); }
LocationService { public synchronized boolean addLocation(Location location) { return submitToPlanner(Objects.requireNonNull(location)); } @Autowired  LocationService(
            LocationRepository repository,
            RouteOptimizer optimizer,
            DistanceMatrix distanceMatrix,
            ApplicationEventPublisher eventPublisher); synchronized boolean createLocation(Coordinates coordinates, String description); synchronized boolean addLocation(Location location); synchronized void removeLocation(long id); synchronized void removeAll(); }
LocationService { public synchronized boolean addLocation(Location location) { return submitToPlanner(Objects.requireNonNull(location)); } @Autowired  LocationService(
            LocationRepository repository,
            RouteOptimizer optimizer,
            DistanceMatrix distanceMatrix,
            ApplicationEventPublisher eventPublisher); synchronized boolean createLocation(Coordinates coordinates, String description); synchronized boolean addLocation(Location location); synchronized void removeLocation(long id); synchronized void removeAll();  }