@Test
public void testWorkflowList() {

  @SuppressWarnings("unchecked")
  final List<Workflow> payload = mock(List.class);
  when(client.workflows())
      .thenReturn(CompletableFuture.completedFuture(payload));
  CliMain.run(cliContext, "workflow", "ls");
  verify(client).workflows();
  verify(cliOutput).printWorkflows(payload);
}