@Test
public void testRestoreMode(@Mocked InstanceState state) throws Exception {

    new Expectations() {
        {
            state.getRestoreStatus().getStatus();
            result = Status.STARTED;
        }
    };
    backupVerificationService.execute();
    Truth.assertThat(badVerifications.count()).isEqualTo(0);
    new Verifications() {
        {
            backupVerification.verifyBackup((BackupVersion) any, anyBoolean, (DateRange) any);
            maxTimes = 0;
        }
        {
            backupVerification.verifyAllBackups((BackupVersion) any, (DateRange) any);
            maxTimes = 0;
        }
        {
            backupNotificationMgr.notify((BackupVerificationResult) any);
            maxTimes = 0;
        }
    };
}