@Parameters({"sa@.abc.com", "sa#@abc.com"})

@Test
public void shouldRejectInvalidServiceAccount(String serviceAccount) {
  WorkflowConfiguration configuration = WorkflowConfigurationBuilder.from(FULL_WORKFLOW_CONFIGURATION)
          .serviceAccount(serviceAccount)
          .build();
  assertThat(sut.validateWorkflow(Workflow.create("test", configuration)),
          contains("service account is not a valid email address: " + serviceAccount));
}