@Test
public void testSubmitFlowsConcurrentWhitelist() throws Exception {

  this.props.put(Constants.ConfigurationKeys.MAX_CONCURRENT_RUNS_ONEFLOW, 1);
  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");
}