@Test
public void testUploadLargeFlowFileException() throws Exception {

  final File testYamlFile = ExecutionsTestUtil.getFlowFile(LARGE_FLOW_YAML_DIR, LARGE_FLOW_FILE);
  assertThatThrownBy(
      () -> this.loader.uploadFlowFile(PROJECT_ID, PROJECT_VERSION, testYamlFile, FLOW_VERSION))
      .isInstanceOf(ProjectManagerException.class)
      .hasMessageContaining(
          "Flow file length exceeds 10 MB limit.");
}