It's not for testing, actually. Since PlainAnalyzer and JavaClassAnalyzer now use a Reader instead of a TokenStream for "refs" and "defs", they need a createComponents() method to wrap the Reader in a Tokenizer. I put it here in the base class rather than duplicating it in the two more specialized analyzer classes.