private static String startsByTestToken(String string, int index) {
        for (String testToken : testTokens) {
            if (string.startsWith(testToken, index)) {
                return testToken;
            }
        }
        return null;
    }
<p>Splits "cd" and "fg" and every other single letter into separate tokens.</p>
<p/>
<p><b>Special case</b> for testing overlapping tokens:
Any occurence of the string "bcd" will <b>not</b> split into the tokens
"bc" and "d", but will instead split into "bc" and "cd".</p>
container-search/src/test/java/com/yahoo/prelude/query/parser/TestSegmenter.java