@Test
public void testSubmitFlowsExceedingMaxConcurrentRuns() throws Exception {

  this.props.put(ConfigurationKeys.CONCURRENT_RUNS_ONEFLOW_WHITELIST, "exectest1,"
      + "exec2,3");
  submitFlow(this.flow2, this.ref2);
  submitFlow(this.flow3, this.ref3);
  assertThatThrownBy(() -> this.controller.submitExecutableFlow(this.flow4, this.user.getUserId
      ())).isInstanceOf(ExecutorManagerException.class).hasMessageContaining("Flow " + this
      .flow4.getId() + " has more than 1 concurrent runs. Skipping");
}