@Test
    public void testShowDistanceCircleForArchivedWaypoint() {
        final Geocache cache = new Geocache();
        cache.setGeocode("GC12345");
        cache.setArchived(true);
        saveFreshCacheToDB(cache);

        final Waypoint finalWaypoint = new Waypoint("Final", WaypointType.FINAL, true);
        final Waypoint stageWaypoint = new Waypoint("Stage", WaypointType.STAGE, true);
        final Waypoint parkingWaypoint = new Waypoint("Stage", WaypointType.PARKING, true);
        final Waypoint ownWaypoint = new Waypoint("Stage", WaypointType.OWN, true);
        cache.addOrChangeWaypoint(finalWaypoint, false);
        cache.addOrChangeWaypoint(stageWaypoint, false);
        cache.addOrChangeWaypoint(parkingWaypoint, false);
        cache.addOrChangeWaypoint(ownWaypoint, false);

        assertThat(finalWaypoint.applyDistanceRule()).as("don't show for final waypoint").isFalse();
        assertThat(stageWaypoint.applyDistanceRule()).as("don't show for stage waypoint").isFalse();
        assertThat(parkingWaypoint.applyDistanceRule()).as("don't show for parking waypoint").isFalse();
        assertThat(ownWaypoint.applyDistanceRule()).as("don't show for own waypoint").isFalse();
    }
distance circle must not be shown for waypoints of archived caches.
main/src/androidTest/java/cgeo/geocaching/models/GeocacheTest.java