@Test
    void testGetParamInt() {
        Query q = newQuery("/search?query=foo%20bar&someint=10&notint=hello");
        assertEquals(10, (int) q.properties().getInteger("someint"));

        // provoke an exception.  if exception is not triggered
        // we fail the test.
        try {
            q.properties().getInteger("notint");
            fail("Trying to access non-integer as integer should fail");
        } catch (java.lang.NumberFormatException e) {
            // NOP
        }
    }
Test that the integer convenience wrapper works as documented,
throwing NumberFormatException when applied to something that
is not a number.
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java