void () { Map<String, String> graph = new HashMap<>(); graph.put("a", "bcd"); graph.put("b", "acd"); graph.put("c", "abd"); graph.put("d", "abc"); Set<String> nodes = new HashSet<>(); nodes.add("a"); getAlgorithmsInstance().collectOutsRecursively(initGraph(graph), "a", nodes); assertThat(nodes.size()).isEqualTo(1); }