@Test
    void testInvalidInput() {
        PosSearcher searcher = new PosSearcher();
        Result result;

        Query q = new Query();
        q.properties().set("pos.ll", "NE74.14;E14.48");
        result = doSearch(searcher, q, 0, 10);
        assertEquals("Error in pos parameters: Unable to parse lat/long string 'NE74.14;E14.48': already set direction once, cannot add direction: E",
                ((ErrorHit) result.hits().get(0)).errors().iterator().next().getDetailedMessage());

        q = new Query();
        q.properties().set("pos.ll", "NE74.14;E14.48");
        q.properties().set("pos.xy", "82400, 72800");
        result = doSearch(searcher, q, 0, 10);
        assertEquals("Error in pos parameters: Cannot handle both lat/long and xy coords at the same time",
                ((ErrorHit) result.hits().get(0)).errors().iterator().next().getDetailedMessage());
    }
Tests input parameters that should report errors.
container-search/src/test/java/com/yahoo/prelude/searcher/test/PosSearcherTestCase.java