@Test
public void testAnchorToHotspot() throws Exception {

	assertEquals(
			OverlayItem.HotspotPlace.UPPER_LEFT_CORNER,
			OsmUtils.anchorToHotspot(0f, 0f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.TOP_CENTER,
			OsmUtils.anchorToHotspot(0.5f, 0f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.UPPER_RIGHT_CORNER,
			OsmUtils.anchorToHotspot(1f, 0f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.LEFT_CENTER,
			OsmUtils.anchorToHotspot(0f, 0.5f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.CENTER,
			OsmUtils.anchorToHotspot(0.5f, 0.5f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.RIGHT_CENTER,
			OsmUtils.anchorToHotspot(1f, 0.5f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.LOWER_LEFT_CORNER,
			OsmUtils.anchorToHotspot(0f, 1f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.BOTTOM_CENTER,
			OsmUtils.anchorToHotspot(0.5f, 1f)
	);
	assertEquals(
			OverlayItem.HotspotPlace.LOWER_RIGHT_CORNER,
			OsmUtils.anchorToHotspot(1f, 1f)
	);
}