### Question:
NoopFlyteRunner implements FlyteRunner { @Override public void terminateExecution(RunState runState, FlyteExecutionId flyteExecutionId) { throw new IllegalStateException("Cannot halt execution : " + flyteExecutionId); }  @Override boolean isEnabled(); @Override String createExecution(RunState runState, String name, FlyteExecConf flyteExecConf,
                                Map<String, String> annotations); @Override void terminateExecution(RunState runState, FlyteExecutionId flyteExecutionId); @Override void poll(final FlyteExecutionId flyteExecutionId, final RunState runState); @Override void close();  }### Answer:
@Test public void testTerminateExecutionThrowsException() { assertThrows( IllegalStateException.class, () -> runner.terminateExecution(null, FLYTE_EXECUTION_ID) ); }