@Test
public void testDuplicateProjectYamlFilesException() {

  final FlowLoaderFactory loaderFactory = new FlowLoaderFactory(new Props(null));
  final File projectDir = ExecutionsTestUtil.getFlowDir(DUPLICATE_PROJECT_DIRECTORY);
  assertThatThrownBy(() -> loaderFactory.createFlowLoader(projectDir))
      .isInstanceOf(ProjectManagerException.class)
      .hasMessageContaining(
          "Duplicate project YAML files found in the project directory. Only one is allowed.");
}