void () { TestNode node = new TestNode("A"); Graph<TestNode> graph = GraphGenerator.generate(new InboundSemiGraph<>() { @NotNull @Override public Collection<TestNode> getNodes() { return Collections.singletonList(node); } @NotNull @Override public Iterator<TestNode> getIn(TestNode n) { return Collections.emptyIterator(); } }); assertFalse(graph.getOut(node).hasNext()); }