void () { List<InferenceVariablesOrder.InferenceGraphNode<Integer>> acyclicNodes = InferenceVariablesOrder.initNodes(getNodes()); String messages = StringUtil.join(acyclicNodes, node -> String.valueOf(node.getValue()), "\n"); assertEquals(""" [9] [8, 7, 6] [5] [2, 1] [4, 3]""", messages); }