@Override
    public void delete(RuleDao nativeEntity) {
        ruleService.delete(nativeEntity.id());
    }
@Test
    @MongoDBFixtures("PipelineRuleFacadeTest.json")
    public void delete() throws NotFoundException {
        final RuleDao ruleDao = ruleService.loadByName("debug");
        assertThat(ruleService.loadAll()).hasSize(2);

        facade.delete(ruleDao);
        assertThatThrownBy(() -> ruleService.loadByName("debug"))
                .isInstanceOf(NotFoundException.class);
        assertThat(ruleService.loadAll()).hasSize(1);
    }