if (StringUtils.getLevenshteinDistance(str, permuted) <= distance)
shouldHave.add(permuted);
}
Dictionary dict = new DictionaryBuilder().addAll(all).build();
LevenshteinAutomaton la = new LevenshteinAutomaton(str, distance);
Assert.assertEquals(shouldHave, la.intersectionLanguage(dict));
}