private void assertWaypointCalcPart(final Waypoint wp, final CacheArtefactParser cacheArtefactParser, final String expectedLat, final String expectedLon, final String ... expectedVars) {
        final String calcStateJson = wp.getCalcStateConfig();
        assertThat(calcStateJson).isNotNull();
        final CalculatedCoordinate cc = CalculatedCoordinate.createFromConfig(calcStateJson);
        assertThat(cc.getLatitudePattern()).isEqualTo(expectedLat);
        assertThat(cc.getLongitudePattern()).isEqualTo(expectedLon);

        assertThat(cacheArtefactParser.getVariables()).hasSize(expectedVars.length);
        for (String expectedVar : expectedVars) {
            final String[] exp = expectedVar.split("=", -1);
            assertThat(cacheArtefactParser.getVariables()).containsEntry(exp[0], exp[1]);

        }
    }
Formula incomplete, Geopoint should not be created
main/src/test/java/cgeo/geocaching/models/CacheArtefactParserTest.java