LocationRepositoryImpl implements LocationRepository { @Override public void removeAll() { repository.deleteAll(); } @Autowired  LocationRepositoryImpl(LocationCrudRepository repository); @Override Location createLocation(Coordinates coordinates, String description); @Override List<Location> locations(); @Override Location removeLocation(long id); @Override void removeAll(); @Override Optional<Location> find(long locationId);  }
@Test void remove_all_locations() { repository.removeAll(); verify(crudRepository).deleteAll(); }