ArchiveUnthinner { private Map<Dependency, FileValidationStatus> getValidationStatuses(final Set<Dependency> deps, final String validationKey) { try { return this.jdbcDependencyManager.getValidationStatuses(deps, validationKey); } catch (SQLException e) { throw new ProjectManagerException( String.format("Unable to query DB for validation statuses " + "for project with validationKey %s", validationKey)); } } @Inject  ArchiveUnthinner(final ValidatorUtils validatorUtils, final JdbcDependencyManager jdbcDependencyManager,
      final DependencyTransferManager dependencyTransferManager); Map<String, ValidationReport> validateThinProject(final Project project,
      final File projectFolder, final File startupDependenciesFile, final Props additionalValidatorProps); static final String CACHED_VALIDATOR_REPORT_NAME; }
@Test(expected = ProjectManagerException.class) public void testErrorDownload() throws Exception { Map<Dependency, FileValidationStatus> sampleValidationStatuses = new HashMap(); sampleValidationStatuses.put(depA, FileValidationStatus.NEW); sampleValidationStatuses.put(depB, FileValidationStatus.NEW); when(this.jdbcDependencyManager.getValidationStatuses(any(), eq(VALIDATION_KEY))) .thenReturn(sampleValidationStatuses); reset(this.dependencyTransferManager); doThrow(new DependencyTransferException()) .when(this.dependencyTransferManager).downloadAllDependencies(depSetEq(depSetAB)); runUnthinner(); }