@Test
  public void findsStoresByLocation() {

    Point location = new Point(-73.995146, 40.740337);
    Store store = new Store("Foo", new Address("street", "city", "zip", location));

    store = repository.save(store);

    Page<Store> stores =
        repository.findByAddressLocationNear(
            location, new Distance(1.0, Metrics.KILOMETERS), new PageRequest(0, 10));

    assertThat(stores.getContent(), hasSize(1));
    assertThat(stores.getContent(), hasItem(store));
  }
 @Before
 @After
 public void clearDb() {
   repository.deleteAll();
 }