GeoHashExtensions { public static FirstAndSecondRingRegion getFirstAndSecondRingRegion(final String geohash) { return new FirstAndSecondRingRegion(geohash); }  static double[] decode(final String geohash); static double[] decodeAndRound(final String geohash); static String encode(final double latitude, final double longitude); static String getAdjacent(final String geohash, final String direction); static String getAdjacent(final String geohash, final String... directions); static List<String> getAllAdjacentAreasList(final String geohash); static Map<String, String> getAllAdjacentAreasMap(final String geohash); static FirstAndSecondRingRegion getFirstAndSecondRingRegion(final String geohash); static FirstRingRegion getFirstRingRegion(final String geohash); static double getLatitude(final String geohash); static double getLongitude(final String geohash); static Map<String, String> getTwentyFiveAreasMap(final String geohash);  }
@Test public void testGetFirstAndSecondRingRegion() { FirstAndSecondRingRegion actual; FirstAndSecondRingRegion expected; String geohash; geohash = GeoHashExtensions.encode(53.5526394, 10.0067103); actual = GeoHashExtensions.getFirstAndSecondRingRegion(geohash); assertNotNull(actual); expected = new FirstAndSecondRingRegion(geohash); assertEquals(expected, actual); }