### Question:
SudachiSurfaceFormFilterFactory extends TokenFilterFactory { @Override public TokenStream create(TokenStream tokenStream) { return new SudachiSurfaceFormFilter(tokenStream); } SudachiSurfaceFormFilterFactory(Map<String, String> args); @Override TokenStream create(TokenStream tokenStream);  }### Answer:
@Test public void testEmptyTerm() throws IOException { analyzer = new Analyzer() { @Override protected TokenStreamComponents createComponents(String s) { Tokenizer tokenizer = new KeywordTokenizer(); return new TokenStreamComponents(tokenizer, new SudachiSurfaceFormFilterFactory(Collections.emptyMap()).create(tokenizer)); } }; checkOneTerm(analyzer, "", ""); analyzer.close(); }