@Test(expected = DependencyTransferException.class)
// Ensure that even if one download fails, we get exception
public void testDownloadDependencyExceptionForAnyFailure() throws Exception {

  // When getDependency is called, write the content to the file as if it was downloaded
  doAnswer((Answer<InputStream>) invocation -> {
    DependencyFile depFile = (DependencyFile) invocation.getArguments()[0];
    String content = depFile.equals(depA) ? WRONG_CONTENT : ThinArchiveTestUtils.getDepBContent();
    return IOUtils.toInputStream(content);
  }).when(this.storage).getDependency(any());
  this.dependencyTransferManager.downloadAllDependencies(depSetAB);
}