@Override
    public void suspend(Throwable cause) {
        suspend(cause, null);
    }
@Test
    void testSuspendToFinished() throws Exception {
        try (MockStateWithExecutionGraphContext context =
                new MockStateWithExecutionGraphContext()) {

            final TestingStateWithExecutionGraph stateWithExecutionGraph =
                    createStateWithExecutionGraph(context);

            context.setExpectFinished(
                    aeg -> assertThat(aeg.getState()).isEqualTo(JobStatus.SUSPENDED));

            stateWithExecutionGraph.suspend(new RuntimeException());
        }
    }