private void assertExtraTermInfo(int weight, String origin, Item g) {
        WordItem gram = (WordItem)g;
        assertEquals(weight, gram.getWeight());
        assertEquals(origin, gram.getOrigin().getValue());
        assertTrue(gram.isProtected());
        assertFalse(gram.isFromQuery());
    }
Note that single-term phrases are simplified to just the term at parse time,
so the ngram rewriter cannot know to keep the grams as a phrase in this case.
container-search/src/test/java/com/yahoo/search/querytransform/test/NGramSearcherTestCase.java