private void assertFiniteStringsRecursive(Automaton automaton,List<IntsRef> actual){
  Set<IntsRef> expected=AutomatonTestUtil.getFiniteStringsRecursive(automaton,-1);
  assertEquals(expected.size(),actual.size());
  assertEquals(expected,new HashSet<>(actual));
}

private void assertFiniteStringsRecursive ( Automaton automaton , List < IntsRef > actual ) { Set < IntsRef > expected = AutomatonTestUtil . getFiniteStringsRecursive ( automaton , - 1 ) ; assertEquals ( expected . size ( ) , actual . size ( ) ) ; assertEquals ( expected , new HashSet < > ( actual ) ) ; }
check that strings the automaton returns are as expected .
