### Question:
SphericalMercatorProjection { public static double longitudeToX(double longitude) { return Math.toRadians(longitude) * EARTH_RADIUS; }  static double yToLatitude(double y); static double xToLongitude(double x); static double latitudeToY(double latitude); static double longitudeToX(double longitude); static Location ecefToLocation(double[] ecef); static double[] ecefToGeodetic(double[] ecef); static double[] locationToEcef(Location location); static double[] geodeticToEcef(double[] geodetic); static final double EARTH_RADIUS; }### Answer:
@Test public void longitudeToX() { double expectedX = 1492232.6533872557; double actualX = SphericalMercatorProjection.longitudeToX(LocationTest.BERLIN.getLongitude()); assertEquals(expectedX, actualX, 0.00001); }