AzkabanProjectLoader { public ProjectFileHandler getProjectFile(final Project project, int version) throws ProjectManagerException { if (version == -1) { version = this.projectLoader.getLatestProjectVersion(project); } return this.projectStorageManager.getProjectFile(project.getId(), version); } @Inject  AzkabanProjectLoader(final Props props, final CommonMetrics commonMetrics, final ProjectLoader projectLoader,
      final ProjectStorageManager projectStorageManager, final FlowLoaderFactory flowLoaderFactory,
      final ExecutorLoader executorLoader, final DatabaseOperator databaseOperator,
      final Storage storage, final ArchiveUnthinner archiveUnthinner,
      final ValidatorUtils validatorUtils); Map<String, ValidationReport> uploadProject(final Project project,
      final File archive, final String fileType, final User uploader, final Props additionalProps,
      final String uploaderIPAddr); ProjectFileHandler getProjectFile(final Project project, int version);  }
@Test public void getProjectFile() throws Exception { when(this.projectLoader.getLatestProjectVersion(this.project)).thenReturn(this.VERSION); this.azkabanProjectLoader.getProjectFile(this.project, -1); verify(this.projectLoader).getLatestProjectVersion(this.project); verify(this.projectStorageManager).getProjectFile(this.ID, this.VERSION); }