### Question:
WGS84Util { public static double normalizeLongitude(double longitude) { double asRad = Math.toRadians(longitude); if (asRad > Math.PI) { return Math.toDegrees(-2 * Math.PI + asRad) % 180; } else if (-Math.PI > asRad) { return Math.toDegrees(2 * Math.PI + asRad) % 180; } return longitude; }  static double shortestDistanceBetween(Point a, Point b); static double getLongitudeDelta(double latitude, double distance); static double getLatitudeDelta(double distance); static double normalizeLongitude(double longitude); static double normalizeLatitude(double latitude); static final String EPSG_4326; }### Answer:
@Test public void shouldNormlizeLongitudesBiggerThan180Degrees() { double toNormalize = 182.3; double normalized = WGS84Util.normalizeLongitude(toNormalize); assertThat(normalized, closeTo(-177.7, ERROR_DELTA)); }
@Test public void shouldNormlizeLongitudesSmallerThan180Degrees() { double toNormalize = -182.3; double normalized = WGS84Util.normalizeLongitude(toNormalize); assertThat(normalized, closeTo(177.7, ERROR_DELTA)); }
@Test public void shouldNotChangeZeroLongitudeDegrees() { double toNormalize = 0; double normalized = WGS84Util.normalizeLongitude(toNormalize); assertThat(normalized, closeTo(0, ERROR_DELTA)); }