### Question:
Vicinity { public BoundingBox calculateBounds() { return calculateBounds(CRSUtils.createEpsgStrictAxisOrder()); } Vicinity();  Vicinity(Point center, Number radius); BoundingBox calculateBounds(); BoundingBox calculateBounds(CRSUtils crsUtils); void setCrs(String crs); String getCrs(); void setRadius(Number radius); double getRadius(); void setCenter(Point center); Point getCenter(); @Override String toString();  }### Answer:
@Test public void shouldHaveInversedLatitudesWhenCenterIsOnEquator() throws GeoJSONException, IOException { Vicinity vicinity = createVicinity(circleCenterAtGreenwhichAndEquator, 500); BoundingBox bounds = vicinity.calculateBounds(); double llLatitudeOfSmallCircle = bounds.getLowerLeft().getY(); double urLatitudeOfSmallCircle = bounds.getUpperRight().getY(); assertThat(llLatitudeOfSmallCircle, closeTo(-urLatitudeOfSmallCircle, ERROR_DELTA)); }
@Test public void shouldHaveInversedLongitudesWhenCenterIsOnGreenwhich() throws GeoJSONException, IOException { Vicinity vicinity = createVicinity(circleCenterAtGreenwhichAndEquator, 500); BoundingBox bounds = vicinity.calculateBounds(); double llLongitudeOfGreatCircle = bounds.getLowerLeft().getX(); double urLongitudeOnGreatCircle = bounds.getUpperRight().getX(); assertThat(llLongitudeOfGreatCircle, closeTo(-urLongitudeOnGreatCircle, ERROR_DELTA)); }
@Test public void shouldHaveCommonLatitudeCircleWhenCenterIsNorthPole() throws GeoJSONException, IOException { Vicinity vicinity = createVicinity(circleAroundNorthPole, 500); BoundingBox bounds = vicinity.calculateBounds(); double llLatitudeOfSmallCircle = bounds.getLowerLeft().getY(); double urLatitudeOfSmallCircle = bounds.getUpperRight().getY(); assertThat(llLatitudeOfSmallCircle, closeTo(urLatitudeOfSmallCircle, ERROR_DELTA)); }
@Test public void shouldHaveCommonLatitudeCircleWhenCenterIsSouthPole() throws GeoJSONException, IOException { Vicinity vicinity = createVicinity(circleAroundSouthPole, 500); BoundingBox bounds = vicinity.calculateBounds(); double llLatitudeOfSmallCircle = bounds.getLowerLeft().getY(); double urLatitudeOfSmallCircle = bounds.getUpperRight().getY(); assertThat(llLatitudeOfSmallCircle, closeTo(urLatitudeOfSmallCircle, ERROR_DELTA)); }