@Test
public void testBackup(
        @Mocked IConfiguration configuration, @Mocked IBackupRestoreConfig backupRestoreConfig)
        throws Exception {

    new Expectations() {
        {
            backupRestoreConfig.getSnapshotMetaServiceCronExpression();
            result = "0 0 0/1 1/1 * ? *";
            backupRestoreConfig.getBackupTTLMonitorPeriodInSec();
            result = 600;
            backupRestoreConfig.getBackupVerificationCronExpression();
            result = "0 0 0/1 1/1 * ? *";
            configuration.isIncrementalBackupEnabled();
            result = false;
            configuration.getDataFileLocation();
            result = "target/data";
        }
    };
    IService backupService =
            new BackupV2Service(
                    configuration,
                    backupRestoreConfig,
                    scheduler,
                    snapshotMetaTask,
                    cassandraTunerService);
    backupService.scheduleService();
    Assert.assertEquals(3, scheduler.getScheduler().getJobKeys(null).size());
}