@Test
public void testWorkflowShow() {

  var payload = mock(WorkflowWithState.class);
  when(client.workflowWithState("foo", "bar"))
      .thenReturn(CompletableFuture.completedFuture(payload));
  CliMain.run(cliContext, "workflow", "show", "foo", "bar");
  verify(client).workflowWithState("foo", "bar");
  verify(cliOutput).printWorkflow(payload.workflow(), payload.state());
}