MosaicTileHandler { Point getCurrentMacroTile() { return currentMacroTile; } MosaicTileHandler(MosaicGrid mosaicGrid); void handleTile(TileIndexWritable key, TileDataWritable data); void close();  }
@Test public void testGetCurrentMacroTile() throws Exception { assertNull(tileHandler.getCurrentMacroTile()); tileHandler.handleTile(createKey(0, 0, 2, 3), null); assertNotNull(tileHandler.getCurrentMacroTile()); assertEquals(new Point(0, 0), tileHandler.getCurrentMacroTile()); tileHandler.handleTile(createKey(0, 0, 4, 3), null); assertEquals(new Point(0, 0), tileHandler.getCurrentMacroTile()); tileHandler.handleTile(createKey(0, 2, 4, 3), null); assertEquals(new Point(0, 2), tileHandler.getCurrentMacroTile()); }