private String parseException(boolean assumeLatitude, String toParse) {
        String message = "";
        try {
            parser = new OneDegreeParser(assumeLatitude, toParse);
            assertTrue(false);
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        return message;
    }
Tests inputs that are on latitude 90/-90 degrees and longitude 180/-180 degrees.
vespajlib/src/test/java/com/yahoo/geo/OneDegreeParserTestCase.java