### Question:
Location { public double getDistanceTo(Location location) { return LocationDistanceCalculator.calculateDistanceBetween(this, location); } Location();  Location(double latitude, double longitude);  Location(double latitude, double longitude, double altitude);  Location(double latitude, double longitude, double altitude, double elevation);  Location(Location location); double getDistanceTo(Location location); double getAngleTo(Location location); void shift(double distance, double angle); Location getShiftedLocation(double distance, double angle); boolean latitudeAndLongitudeEquals(Location location); boolean latitudeAndLongitudeEquals(Location location, double delta); boolean hasLatitudeAndLongitude(); boolean hasAltitude(); boolean hasElevation(); boolean hasAccuracy(); URI generateGoogleMapsUri(); @Override String toString(); static double getRotationAngleInDegrees(Location centerLocation, Location targetLocation); double getLatitude(); void setLatitude(double latitude); double getLongitude(); void setLongitude(double longitude); double getAltitude(); void setAltitude(double altitude); long getTimestamp(); void setTimestamp(long timestamp); double getElevation(); void setElevation(double elevation); double getAccuracy(); void setAccuracy(double accuracy); static final double VALUE_NOT_SET; }### Answer:
@Test public void getDistanceTo_validLocations_correctDistance() throws Exception { double distance = NEW_YORK_CITY.getDistanceTo(BERLIN); assertEquals(DISTANCE_NYC_BERLIN, distance, 1); }