### Question:
MapTileIndex { public static long getTileIndex(final int pZoom, final int pX, final int pY) { checkValues(pZoom, pX, pY); return (((long)pZoom) << (mMaxZoomLevel * 2)) + (((long)pX) << mMaxZoomLevel) + (long)pY; }  static long getTileIndex(final int pZoom, final int pX, final int pY); static int getZoom(final long pTileIndex); static int getX(final long pTileIndex); static int getY(final long pTileIndex); static String toString(final int pZoom, final int pX, final int pY); static String toString(final long pIndex); static int mMaxZoomLevel; }### Answer:
@Test public void testIndex() { final int iterations = 1000; for (int i = 0 ; i < iterations ; i ++) { final int zoom = getRandomZoom(); final int x = getRandomXY(zoom); final int y = getRandomXY(zoom); final long index = MapTileIndex.getTileIndex(zoom, x, y); checkIndex(index, zoom, x, y); } }