@Test
    final void testGetNumTerms() {
        ItemHelper helper = new ItemHelper();
        Query q = new Query("/?query=" + enc("a b c"));
        assertEquals(3, helper.getNumTerms(q.getModel().getQueryTree().getRoot()));
    }
Unit test for the helper methods placed in
com.yahoo.prelude.query.ItemHelper.

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
container-search/src/test/java/com/yahoo/prelude/query/ItemHelperTestCase.java