@Test
    public void touchMarkerHotspots() {
        //CENTER
        assertThat(marker(GP_1, 20, 30, null).touches(addE6(GP_1, 15, 10), TO_LATLON_E6)).isTrue();
        assertThat(marker(GP_1, 20, 30, null).touches(addE6(GP_1, 16, 11), TO_LATLON_E6)).isFalse();

        //UPPER_RIGHT
        assertThat(marker(GP_1, 20, 30, gi -> gi.setHotspot(GeoIcon.Hotspot.UPPER_RIGHT_CORNER)).touches(addE6(GP_1, 0, 0), TO_LATLON_E6)).isTrue();
        assertThat(marker(GP_1, 20, 30, gi -> gi.setHotspot(GeoIcon.Hotspot.UPPER_RIGHT_CORNER)).touches(addE6(GP_1, -1, 1), TO_LATLON_E6)).isFalse();
    }
A fake bitmap provider used for testing touching routines
main/src/test/java/cgeo/geocaching/models/geoitem/GeoItemTest.java