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

    new Expectations() {
        {
            configuration.getBackupCronExpression();
            result = "0 0/1 * 1/1 * ? *";
            configuration.isIncrementalBackupEnabled();
            result = false;
        }
    };
    IService backupService =
            new BackupService(
                    configuration, backupRestoreConfig, scheduler, cassandraTunerService);
    backupService.scheduleService();
    Assert.assertEquals(2, scheduler.getScheduler().getJobKeys(null).size());
}