@Test
public void authorizeWorkflowActionWithIdShouldPass() throws IOException {

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