@Test
    void testFreshness() {
        Query query = newQuery("?query=test&datetime=103");
        assertEquals(query.getRanking().getFreshness().getRefTime(), 103);
        query.getRanking().setFreshness("193");

        assertEquals(query.getRanking().getFreshness().getRefTime(), 193);
        query.getRanking().setFreshness("now");

        assertTrue(query.getRanking().getFreshness().getSystemTimeInSecondsSinceEpoch() >= query.getRanking().getFreshness().getRefTime());
        int presize = query.errors().size();
        query.getRanking().setFreshness("sometimeslater");

        int postsize = query.errors().size();
        assertTrue(postsize > presize);
    }
Test a vertical specific patch, see Tokenizer
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java