@Test
public void testAsyncDownloadFailure() throws Exception {

    Future<Path> future = failureFileSystem.asyncDownloadFile(Paths.get(""), null, 2);
    try {
        future.get();
    } catch (Exception e) {
        // Verify the failure metric for upload is incremented.
        Assert.assertEquals(1, (int) backupMetrics.getInvalidDownloads().count());
    }
}