### Question:
SphericalMercatorProjection { public static double latitudeToY(double latitude) { return Math.log(Math.tan(Math.PI / 4 + Math.toRadians(latitude) / 2)) * 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 latitudeToY() { double expectedY = 6894701.008722784; double actualY = SphericalMercatorProjection.latitudeToY(LocationTest.BERLIN.getLatitude()); assertEquals(expectedY, actualY, 0.00001); }