### Question:
GeoCoder { public static Coordinates geoCodeAddress(String country, String city) throws GeoCodingException { final String address = city != null ? city + " , " + country : country; return GeoCoder.geoCodeAddress(address); }  static Coordinates geoCodeAddress(String country, String city); static Coordinates geoCodeAddress(String address);  }### Answer:
@Test public void geoCodeTest() throws GeoCodingException { final String address = "Paris, FR"; final Coordinates coord = GeoCoder.geoCodeAddress(address); Assert.assertNotNull(coord); Assert.assertEquals(GeoCoderTest.PARIS_COORDINATES.getLatitude(), coord.getLatitude()); Assert.assertEquals(GeoCoderTest.PARIS_COORDINATES.getLongitude(), coord.getLongitude()); }
@Test public void geoCodeUnexistingPlaceTest() throws GeoCodingException { final String address = "Pirates Island, Neverland"; final Coordinates coord = GeoCoder.geoCodeAddress(address); Assert.assertNull(coord); }