UserPositionManager { public void disablePosition() { overlay.removeAllItems(); mapView.postInvalidate(); } UserPositionManager(final Activity activity, final MapView mapView);  UserPositionManager(final Activity activity, final MapView mapView,
                               final UserPositionItem userPositionItem); void setNeighbours(final SortedSet<NicGeoPoint> neighbours); void setNeighboursWithOutliers(final SortedSet<NicGeoPoint> neighboursWithOutliers); void setParticles(List<Particle> particles); void updateItems(final List<UserPositionItem> userPositionItems); void disablePosition(); SortedSet<NicGeoPoint> getNeighbours(); SortedSet<NicGeoPoint> getOutliers(); NicGeoPoint getBoundingBoxCenter();  }
@Test public void testThatDisablePositionRemovesAllItemsFromTheOverlay() { ItemizedIconOverlay<UserPositionItem> overlay = spy(userPositionManager.overlay); userPositionManager.overlay = overlay; userPositionManager.disablePosition(); verify(overlay, times(1)).removeAllItems(); }