### Question:
PlainCliOutput implements CliOutput { @Override public void printWorkflows(List<Workflow> workflows) { workflows.forEach(wf -> System.out.println(wf.componentId() + " " + wf.workflowId())); }  @Override void printStates(RunStateDataPayload runStateDataPayload); @Override void printEvents(List<EventInfo> eventInfos); @Override void printBackfill(Backfill backfill, boolean ignored); @Override void printBackfillPayload(BackfillPayload backfillPayload, boolean ignored); @Override void printBackfills(List<BackfillPayload> backfills, boolean ignored); @Override void printResources(List<Resource> resources); @Override void printMessage(String message); @Override void printWorkflow(Workflow wf, WorkflowState state); @Override void printWorkflows(List<Workflow> workflows); @Override void printError(String message);  }### Answer:
@Test public void shouldPrintWorkflows() { 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()); cliOutput.printWorkflows(List.of(foo1, foo2)); assertThat(outContent.toString(), is(String.format("foo1 bar1%nfoo2 bar2%n"))); }