@Test
    public void testAboveBoundary() {
        String message = "";
        try {
            parser = new DegreesParser("N90.0001;E0");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-90,+90]: 90.0001", message);
        try {
            parser = new DegreesParser("S90.0001;E0");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-90,+90]: -90.0001", message);
        try {
            parser = new DegreesParser("N0;E180.0001");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-180,+180]: 180.0001", message);
        try {
            parser = new DegreesParser("N0;W180.0001");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-180,+180]: -180.0001", message);
        try {
            parser = new DegreesParser("N90.000001;E0");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-90,+90]: 90.000001", message);
        try {
            parser = new DegreesParser("S90.000001;E0");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-90,+90]: -90.000001", message);
        try {
            parser = new DegreesParser("N0;E180.000001");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-180,+180]: 180.000001", message);
        try {
            parser = new DegreesParser("N0;W180.000001");
        } catch (IllegalArgumentException e) {
            message = e.getMessage();
        }
        assertEquals("out of range [-180,+180]: -180.000001", message);
    }
Tests inputs that are above latitude 90/-90 degrees and longitude 180/-180 degrees.
vespajlib/src/test/java/com/yahoo/geo/DegreesParserTestCase.java