@Test
public void testConvertLatLonToTileOffset() {

    LOG.info("testConvertLatLonToTileOffset");
    Assert.assertEquals(new TileOffset(new TileKey(2, 2, 2), 0, 0),
            TileMap.convertLatLonToTileOffset(new GeoPoint(0.0, 0.0), 2));
    Assert.assertEquals(new TileOffset(new TileKey(2, 0, 2), 0, 2),
            TileMap.convertLatLonToTileOffset(new GeoPoint(90.0, 0.0), 2));
    Assert.assertEquals(new TileOffset(new TileKey(3, 2, 2), MapConst.PIXELS_PER_TILE, 0),
            TileMap.convertLatLonToTileOffset(new GeoPoint(0.0, Geo.LON180), 2));
    Assert.assertEquals(new TileOffset(new TileKey(0, 2, 2), 0, 0),
            TileMap.convertLatLonToTileOffset(new GeoPoint(0.0, 180.0), 2));
    Assert.assertEquals(new TileOffset(new TileKey(0, 2, 2), 0, 0),
            TileMap.convertLatLonToTileOffset(new GeoPoint(0.0, -180.0), 2));
    Assert.assertEquals(new TileOffset(new TileKey(0, 2, 2), 0, 0),
            TileMap.convertLatLonToTileOffset(new GeoPoint(0.0, -Geo.LON180), 2));
}