@Test
public void testSize() {

  final float lat = 25.18f;
  for (int bits = 10; bits < 25; bits++) {
    final long maskLat = Geobox.getMask(lat, 90f, bits);
    // decrease until limit
    long m = maskLat;
    float latMin = lat;
    while (m == maskLat) {
      latMin -= 0.00001f;
      m = Geobox.getMask(latMin, 90f, bits);
    }
            LOG.info("latMin = {}", latMin);
    // increase until limit
    m = maskLat;
    float latMax = lat;
    while (m == maskLat) {
      latMax += 0.00001f;
      m = Geobox.getMask(latMax, 90f, bits);
    }
            LOG.info("latMax = {}", latMax);
    DLocation pMin = new DLocation(latMin, lat);
    DLocation pMax = new DLocation(latMax, lat);
            LOG.info("lat distance for {} bits is {}m", bits, Geobox.distance(pMin, pMax));
    pMin = new DLocation(lat, latMin);
    pMax = new DLocation(lat, latMax);
            LOG.info("long distance at N{} is {}m", lat, GeoDaoImpl.distance(pMin, pMax));
  }
}