@@ -0,0 +1,978 @@
+package org.gbif.occurrence.hive.udf;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0Apublic class GeoDistanceUDFTest %7B%0A%0A  @Test%0A  public void evaluateTest() %7B%0A%0A    // At the Equator, moving 0.04%C2%B0 is 4448m.%0A    assertTrue(contains(0d, 0d, %225km%22, 0d, 0.04d));%0A    // And 0.5%C2%B0 is 5560m.%0A    assertFalse(contains(0d, 0d, %225km%22, 0d, 0.05d));%0A%0A    // At 80%C2%B0 north, moving 0.04%C2%B0 is only 772m.%0A    assertTrue(contains(80d, 0d, %225km%22, 80d, 0.04d));%0A    // But we can move 0.25%C2%B0 and still have moved only 4827m.%0A    assertTrue(contains(80d, 0d, %225km%22, 80d, 0.25d));%0A    // This is 5020m.%0A    assertFalse(contains(80d, 0d, %225km%22, 80d, 0.26d));%0A  %7D%0A%0A  private boolean contains(Double latitude1, Double longitude1, String distance, Double latitude2, Double longitude2) %7B%0A    return new GeoDistanceUDF().evaluate(latitude1, longitude1, distance, latitude2, longitude2).get();%0A  %7D%0A%7D%0A

Add test case for GeoDistanceUDF.