);
// pass a bogus stream and ensure its still ok
stringField = new StringField("foo", "beer", Field.Store.NO);
TokenStream bogus = new NumericTokenStream();
ts = stringField.tokenStream(null, bogus);
assertNotSame(ts, bogus);
assertTokenStreamContents(ts,
new String[] { "beer" },
new int[] { 0 },
new int[] { 4 }