    @Test
    public void testDatedRuleConstruction() {

        final Instant startTime = Instant.now().minus(1, ChronoUnit.DAYS);
        final Instant endTime = Instant.now().plus(1, ChronoUnit.DAYS);

        final DecisionTreeRule rule = RuleBuilder.creator().with(RuleBuilder::input, Arrays.asList("test1", "test2"))
                .with(RuleBuilder::setDriverCount, 2L)
                .with(RuleBuilder::setId, new UUID(0, 1))
                .with(RuleBuilder::output, Collections.singletonMap("outputDriver", "result"))
                .with(RuleBuilder::start, startTime)
                .with(RuleBuilder::end, endTime)
                .build();

        assertNotNull(rule);
    }