@Test
public void testUploadFlowFile() throws Exception {

  final File testYamlFile = ExecutionsTestUtil.getFlowFile(BASIC_FLOW_YAML_DIR, BASIC_FLOW_FILE);
  this.loader.uploadFlowFile(PROJECT_ID, PROJECT_VERSION, testYamlFile, FLOW_VERSION);
  final File tempDir = Files.createTempDir();
  tempDir.deleteOnExit();
  final File file = this.loader
      .getUploadedFlowFile(PROJECT_ID, PROJECT_VERSION, BASIC_FLOW_FILE, FLOW_VERSION, tempDir);
  assertThat(file.getName()).isEqualTo(BASIC_FLOW_FILE);
  assertThat(FileUtils.contentEquals(testYamlFile, file)).isTrue();
}