private void setupDataRetentionRules(final String feedName) {
        final DocRef docRef = dataRetentionRulesService.createDocument("test");
        DataRetentionRules dataRetentionRules = dataRetentionRulesService.readDocument(docRef);

        final ExpressionOperator.Builder builder = ExpressionOperator.builder();
        builder.addTextTerm(MetaFields.FEED, Condition.EQUALS, feedName);
        final DataRetentionRule rule = createRule(1, builder.build(), FIFTY_FIVE, TimeUnit.DAYS);
        dataRetentionRules.setRules(Collections.singletonList(rule));
        dataRetentionRulesService.writeDocument(dataRetentionRules);
    }
Test the archiving stuff.
<p>
Create some old files and make sure they get archived.
stroom-app/src/test/java/stroom/data/store/impl/fs/TestDataRetentionPolicyExecutor.java