### Question:
LatLongUtils { public static void validateLongitude(double longitude) { if (Double.isNaN(longitude) || longitude < LONGITUDE_MIN || longitude > LONGITUDE_MAX) { throw new IllegalArgumentException("invalid longitude: " + longitude); } } private  LatLongUtils(); static int degreesToMicrodegrees(double coordinate); static LatLong fromString(String latLongString); static double latitudeDistance(int meters); static double longitudeDistance(int meters, double latitude); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); static byte zoomForBounds(Dimension dimension, BoundingBox boundingBox, int tileSize); static final double EQUATORIAL_RADIUS; static final double LATITUDE_MAX; static final double LATITUDE_MIN; static final double LONGITUDE_MAX; static final double LONGITUDE_MIN; }### Answer:
@Test public void validateLongitudeTest() { LatLongUtils.validateLongitude(LatLongUtils.LONGITUDE_MAX); LatLongUtils.validateLongitude(LatLongUtils.LONGITUDE_MIN); verifyInvalidLongitude(Double.NaN); verifyInvalidLongitude(Math.nextAfter(LatLongUtils.LONGITUDE_MAX, Double.POSITIVE_INFINITY)); verifyInvalidLongitude(Math.nextAfter(LatLongUtils.LONGITUDE_MIN, Double.NEGATIVE_INFINITY)); }