### Question:
LevelsFactory { public List<String> allLevels() { return allLevelsClasses().stream() .map(clazz -> clazz.getSimpleName()) .sorted() .collect(toList()); }  List<String> allLevels(); Levels createLevels(String level, Dice dice, FigureQueue playerQueue);  }### Answer:
@Test public void shouldReturnAllLevels(){ List<String> list = factory.allLevels(); assertEquals("[AllFigureLevels, EasyLevels, HardLevels, " + "ProbabilityLevels, ProbabilityWithoutOverflownLevels]", list.toString()); }