@Test
public void testFailedRetriesDownload() {

    try {
        failureFileSystem.downloadFile(Paths.get(""), null, 2);
    } catch (BackupRestoreException e) {
        // Verify the failure metric for download is incremented.
        Assert.assertEquals(1, (int) backupMetrics.getInvalidDownloads().count());
    }
}