@Test
public void shouldEnforceMaxRunningTimeoutLimitWhenSpecified() {

  var runningTimeout = Duration.ofDays(365);
  var errors = sut.validateWorkflow(
      Workflow.create("test", WorkflowConfigurationBuilder.from(FULL_WORKFLOW_CONFIGURATION)
          .runningTimeout(runningTimeout)
          .build()));
  assertThat(errors,
      contains(limit("running timeout is too big", runningTimeout, MAX_RUNNING_TIMEOUT)));
}