@Test public void shouldCalculateEveryAnagram() {

  String input = "abc";
  List<String> result = anagrams.get(input);
  String[] arrayResult = new String[result.size()];
  result.toArray(arrayResult);
  String[] expectedArray = { "abc", "acb", "bac", "bca", "cab", "cba" };
  assertArrayEquals(expectedArray, arrayResult);
}