SnapshotMetaTask extends AbstractBackup { public static TaskTimer getTimer( IConfiguration config, IBackupRestoreConfig backupRestoreConfig) throws Exception { TaskTimer timer = CronTimer.getCronTimer( JOBNAME, backupRestoreConfig.getSnapshotMetaServiceCronExpression()); if (timer == null) { cleanOldBackups(config); } return timer; } @Inject  SnapshotMetaTask(
            IConfiguration config,
            IFileSystemContext backupFileSystemCtx,
            Provider<AbstractBackupPath> pathFactory,
            MetaFileWriterBuilder metaFileWriter,
            @Named("v2") IMetaProxy metaProxy,
            InstanceIdentity instanceIdentity,
            IBackupStatusMgr snapshotStatusMgr,
            CassandraOperations cassandraOperations); static TaskTimer getTimer(
            IConfiguration config, IBackupRestoreConfig backupRestoreConfig); static boolean isBackupEnabled(
            IConfiguration configuration, IBackupRestoreConfig backupRestoreConfig); void uploadFiles(); @Override void execute(); @Override String getName(); static final String JOBNAME; }
@Test public void testSnapshotMetaServiceEnabled() throws Exception { TaskTimer taskTimer = SnapshotMetaTask.getTimer(configuration, backupRestoreConfig); Assert.assertNotNull(taskTimer); }