Assert.assertEquals("1854801717", searchResponse.getHits().getAt(0).getId());
Assert.assertEquals("1854801716", searchResponse.getHits().getAt(1).getId());
}
protected ShapeBuilder buildSquareShape(double centerLat, double centerLon, double distanceMeter) {
Point point = new PointImpl(centerLon, centerLat, SPATIAL_CONTEXT);
double radius = DistanceUtils.dist2Degrees(distanceMeter / 10E3, DistanceUtils.EARTH_MEAN_RADIUS_KM);
Rectangle shape = SPATIAL_CONTEXT.makeCircle(point, radius).getBoundingBox();
return ShapeBuilder.newEnvelope().bottomRight(shape.getMinX(), shape.getMinY()).topLeft(shape.getMaxX(), shape.getMaxY());
}