@Test
public void shouldFailUsageOfNonWhitelistedSecret() {

  var errors = sut.validateWorkflow(
      Workflow.create("test", WorkflowConfigurationBuilder.from(FULL_WORKFLOW_CONFIGURATION)
          .secret(WorkflowConfiguration.Secret.create("foo-secret", "/path"))
          .build()));
  assertThat(errors, contains("secret foo-secret is not whitelisted"));
}