@Test
public void shouldNotAllowWorkflowIdMismatch() {

  var component = "test";
  var workflowConfiguration = WorkflowConfiguration.builder()
      .id("foo")
      .schedule(Schedule.HOURS)
      .build();
  @SuppressWarnings("ExtendsAutoValue")
  var workflow = new Workflow() {
    @Override
    public String componentId() {
      return component;
    }
    @Override
    public String workflowId() {
      return "bar";
    }
    @Override
    public WorkflowConfiguration configuration() {
      return workflowConfiguration;
    }
  };
  var errors = sut.validateWorkflow(workflow);
  assertThat(errors, contains("workflow id mismatch"));
}