@Test
public void testSubmitFlowsWithSkipOption() throws Exception {

  submitFlow(this.flow2, this.ref2);
  this.flow3.getExecutionOptions().setConcurrentOption(ExecutionOptions.CONCURRENT_OPTION_SKIP);
  assertThatThrownBy(
      () -> this.controller.submitExecutableFlow(this.flow3, this.user.getUserId()))
      .isInstanceOf(ExecutorManagerException.class).hasMessageContaining(
      "Flow " + this.flow3.getId() + " is already running. Skipping execution.");
}