@Test
public void testLoadInvalidFlowYamlFileWithCycle() {

  final DirectoryYamlFlowLoader loader = new DirectoryYamlFlowLoader(new Props());
  loader.loadProjectFlow(this.project, ExecutionsTestUtil.getFlowDir(CYCLE_FOUND_YAML_DIR));
  checkFlowLoaderProperties(loader, 1, 1, 1);
  checkFlowProperties(loader, CYCLE_FOUND_FLOW, 1, 4, 1, 4, CYCLE_FOUND_ERROR);
}