@Test
public void authorizeWorkflowActionShouldPassIfAuthorizerPasses() {

  when(ac.user()).thenReturn(Optional.of(idToken));
  assertThat(Try.run(() -> sut.authorizeWorkflowAction(ac, WORKFLOW)).isSuccess(), is(true));
  verify(authorizer).authorizeServiceAccountUsage(
      WORKFLOW.id(), WORKFLOW.configuration().serviceAccount().orElseThrow(), idToken);
}