def METHOD_NAME(self):
    # Default is Porter stemmer
    analyzer = Analyzer(get_lucene_analyzer())
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('City buses are running on time.')
    self.assertEqual(tokens, ['citi', 'buse', 'run', 'time'])
    # Specify Porter stemmer explicitly
    analyzer = Analyzer(get_lucene_analyzer(stemmer='porter'))
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('City buses are running on time.')
    self.assertEqual(tokens, ['citi', 'buse', 'run', 'time'])
    # Specify Krovetz stemmer explicitly
    analyzer = Analyzer(get_lucene_analyzer(stemmer='krovetz'))
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('City buses are running on time.')
    self.assertEqual(tokens, ['city', 'bus', 'running', 'time'])
    # No stemming
    analyzer = Analyzer(get_lucene_analyzer(stemming=False))
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('City buses are running on time.')
    self.assertEqual(tokens, ['city', 'buses', 'running', 'time'])
    # No stopword filter, no stemming
    analyzer = Analyzer(get_lucene_analyzer(stemming=False, stopwords=False))
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('City buses are running on time.')
    self.assertEqual(tokens, ['city', 'buses', 'are', 'running', 'on', 'time'])
    # No stopword filter, with stemming
    analyzer = Analyzer(get_lucene_analyzer(stemming=True, stopwords=False))
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('City buses are running on time.')
    self.assertEqual(tokens, ['citi', 'buse', 'ar', 'run', 'on', 'time'])
    # HuggingFace analyzer, with bert wordpiece tokenizer
    analyzer = Analyzer(get_lucene_analyzer(language="hgf_tokenizer", huggingFaceTokenizer="bert-base-uncased"))
    self.assertTrue(isinstance(analyzer, Analyzer))
    tokens = analyzer.analyze('This tokenizer generates wordpiece tokens')
    self.assertEqual(tokens, ['this', 'token', '##izer', 'generates', 'word', '##piece', 'token', '##s'])