void (final @NotNull Map<String, String> graph, final @NotNull String node, final String @NotNull ... expected) { Set<String> nodes = new HashSet<>(); getAlgorithmsInstance().collectOutsRecursively(initGraph(graph), node, nodes); assertThat(nodes).containsExactlyInAnyOrder(expected); }