  @Test
  void testSort_graphIsNotConnected() {

    ExecutionNode node1 = createExecutionNode("node-1", ImmutableList.of("node-2"));

    VerifyException e =
        assertThrows(
            VerifyException.class, () -> ExecutionNodeCompiler.sort(ImmutableList.of(node1)));

    Assert.assertEquals("workflow graph isn't connected or has a cycle", e.getMessage());
  }