DataRetentionPolicyExecutor { public void exec() { exec(Instant.now()); } @Inject  DataRetentionPolicyExecutor(final ClusterLockService clusterLockService,
                                final Provider<DataRetentionRules> dataRetentionRulesProvider,
                                final DataRetentionConfig policyConfig,
                                final MetaService metaService,
                                final TaskContextFactory taskContextFactory); void exec();  }
@Test void testDataRetention_noRules() { final List<DataRetentionRule> rules = Collections.emptyList(); final Instant now = Instant.now(); final DataRetentionPolicyExecutor dataRetentionPolicyExecutor = createExecutor(rules); dataRetentionPolicyExecutor.exec(now); Mockito.verifyZeroInteractions(metaService); }