@Test
public void testDuplicateUploadFlowFileException() throws Exception {

  final File testYamlFile = ExecutionsTestUtil.getFlowFile(BASIC_FLOW_YAML_DIR, BASIC_FLOW_FILE);
  this.loader.uploadFlowFile(PROJECT_ID, PROJECT_VERSION, testYamlFile, FLOW_VERSION);
  assertThatThrownBy(
      () -> this.loader.uploadFlowFile(PROJECT_ID, PROJECT_VERSION, testYamlFile, FLOW_VERSION))
      .isInstanceOf(ProjectManagerException.class)
      .hasMessageContaining(
          "Error uploading flow file " + BASIC_FLOW_FILE + ", version " + FLOW_VERSION + ".");
}