@Test
    public void testUpdateAndAddNewWaypointFromNote() {
        final Geocache cache = new Geocache();
        final String geocode = "Test" + System.nanoTime();
        cache.setGeocode(geocode);
        cache.setCoords(new Geopoint(40.0, 8.0));
        final Waypoint userWaypoint = new Waypoint("Personal note 1", WaypointType.OWN, true);
        final Geopoint userWpGeopoint = new Geopoint("N51 13.888 E007 03.444");
        userWaypoint.setCoords(userWpGeopoint);
        cache.addOrChangeWaypoint(userWaypoint, false);
        saveFreshCacheToDB(cache);

        final List<Waypoint> wpList = new ArrayList<>();
        wpList.add(createWaypointWithUserNote(new Geopoint("N51 13.888 E007 03.444"), "Personal note 1", "", "User Note", WaypointType.OWN));
        wpList.add(createWaypointWithUserNote(new Geopoint("N51 13.888 E007 03.666"), "Personal note 2", "", "", WaypointType.OWN));
        assertWaypointsParsed(cache, "N51 13.888 E007 03.444 \"User Note\" \n N51 13.888 E007 03.666", wpList);

        wpList.add(createWaypointWithUserNote(new Geopoint("N51 13.888 E007 03.555"), "Personal note 1", "", "User Note", WaypointType.OWN));
        assertWaypointsParsed(cache, "N51 13.888 E007 03.555 \"User Note\" \n N51 13.888 E007 03.666", wpList);

        removeCacheCompletely(geocode);
    }
Waypoint with coordinates exist. Update waypointlist from note.
The first waypoint has auto generated name and coordinates of original coordinates and note.
So expected size is 2:
- existing waypoint with original coordinates and updated note.
- new waypoint with auto generated name and coordinates.
Coordinates of first waypoint in note is changed. Update waypointlist from note.
The changed waypoint has auto generated name and coordinates.
So expected size is 3:
- existing waypoint with original coordinates and updated note.
- second waypoint with auto generated name and coordinates.
- new waypoint with auto generated name and coordinates.
main/src/androidTest/java/cgeo/geocaching/models/GeocacheTest.java