@Test
public void updateService(
        @Mocked IConfiguration configuration,
        @Mocked IBackupRestoreConfig backupRestoreConfig,
        @Mocked JMXNodeTool nodeTool,
        @Mocked TuneCassandra tuneCassandra)
        throws Exception {

    new Expectations() {
        {
            configuration.getBackupCronExpression();
            result = "0 0/1 * 1/1 * ? *";
            result = "0 0/1 * 1/1 * ? *";
            result = "-1";
            result = "-1";
            configuration.isIncrementalBackupEnabled();
            result = true;
            backupRestoreConfig.enableV2Backups();
            result = true;
            backupRestoreConfig.getSnapshotMetaServiceCronExpression();
            result = "0 0/1 * 1/1 * ? *";
        }
    };
    IService backupService =
            new BackupService(
                    configuration, backupRestoreConfig, scheduler, cassandraTunerService);
    backupService.scheduleService();
    Assert.assertEquals(3, scheduler.getScheduler().getJobKeys(null).size());
    System.out.println("After updated");
    backupService.onChangeUpdateService();
    System.out.println(scheduler.getScheduler().getJobKeys(null));
    Assert.assertEquals(2, scheduler.getScheduler().getJobKeys(null).size());
}