question: public void testFiniteStringsBasic ( ) { Automaton a = Operations . union ( Automata . makeString ( "dog" ) , Automata . makeString ( "duck" ) ) ; a = MinimizationOperations . minimize ( a , DEFAULT_MAX_DETERMINIZED_STATES ) ; FiniteStringsIterator iterator = new FiniteStringsIterator ( a ) ; List < IntsRef > actual = getFiniteStrings ( iterator ) ; assertFiniteStringsRecursive ( a , actual ) ; assertEquals ( 2 , actual . size ( ) ) ; IntsRefBuilder dog = new IntsRefBuilder ( ) ; Util . toIntsRef ( new BytesRef ( "dog" ) , dog ) ; assertTrue ( actual . contains ( dog . get ( ) ) ) ; IntsRefBuilder duck = new IntsRefBuilder ( ) ; Util . toIntsRef ( new BytesRef ( "duck" ) , duck ) ; assertTrue ( actual . contains ( duck . get ( ) ) ) ; }
target:  Basic test for getFiniteStrings