@Test
public void testNearestFeaturesFromFeatures() throws
                                              Exception {

    // given a GeoPoint
    final GeoPoint geoPoint = new GeoPoint(47.225782d,
                                           -1.554476d);
    // and a list of Features to check
    final List<Feature> features = asList(new Feature("id1",
                                                      createPoint(gf,
                                                                  47.226468d,
                                                                  -1.554996d)),
                                          new Feature("id2",
                                                      createPoint(gf,
                                                                  47.226126d,
                                                                  -1.554381d)));
    // when applying filter
    final List<Feature> filteredFeatures = getFilteredFeatures(geoPoint,
                                                               45d,
                                                               features);
    // then
    assertNotNull(filteredFeatures);
    assertEquals(1,
                 filteredFeatures.size());
    assertEquals(features.get(1),
                 filteredFeatures.get(0));
}