@Test
public void shouldPrintWorkflows() throws IOException {

  final Workflow foo1 = Workflow.create("foo1", WorkflowConfiguration.builder()
      .id("bar1")
      .schedule(Schedule.DAYS)
      .build());
  final Workflow foo2 = Workflow.create("foo2", WorkflowConfiguration.builder()
      .id("bar2")
      .schedule(Schedule.DAYS)
      .build());
  final List<Workflow> workflows = List.of(foo1, foo2);
  cliOutput.printWorkflows(workflows);
  assertThat(OBJECT_MAPPER.readValue(outContent.toString(), new TypeReference<List<Workflow>>() { }),
      is(workflows));
}