@Test
public void testRestore() throws Exception {

    populateBackupFileSystem("test_backup");
    String dateRange = "201108110030,201108110530";
    restore.restore(new DateUtil.DateRange(dateRange));
    Assert.assertTrue(filesystem.downloadedFiles.contains(fileList.get(0)));
    Assert.assertTrue(filesystem.downloadedFiles.contains(fileList.get(1)));
    Assert.assertTrue(filesystem.downloadedFiles.contains(fileList.get(2)));
    Assert.assertTrue(filesystem.downloadedFiles.contains(fileList.get(3)));
    Assert.assertFalse(filesystem.downloadedFiles.contains(fileList.get(4)));
    Assert.assertFalse(filesystem.downloadedFiles.contains(fileList.get(5)));
    Assert.assertEquals(Status.FINISHED, instanceState.getRestoreStatus().getStatus());
}