private static GeoPrimitive marker(final Geopoint gp, final int width, final int height, final Action1<GeoIcon.Builder> addActions) {
        final GeoIcon.Builder gib = GeoIcon.builder().setBitmapProvider(new FakeBitmap(width, height));
        if (addActions != null) {
            addActions.call(gib);
        }
        return GeoPrimitive.createMarker(gp, gib.build());
    }
A fake bitmap provider used for testing touching routines
main/src/test/java/cgeo/geocaching/models/geoitem/GeoItemTest.java