@Test
public void testWorkflowCreateBadInput() throws Exception {

  final Path workflowsFile = fileFromResource("bad-content.yaml");
  try {
    CliMain.run(cliContext, "workflow", "create", "-f", workflowsFile.toString(), "foo");
    fail();
  } catch (CliExitException e) {
    assertThat(e.status(), is(ExitStatus.InputError));
  }
  verify(cliOutput).printError(contains(
      "Workflow configuration doesn't conform to the expected structure, "));
}