verifyZeroActiveRules(XOO_P1_KEY);
}
@Test
public void deactivation_fails_if_rule_not_found() throws Exception {
ActiveRuleKey key = ActiveRuleKey.of(XOO_P1_KEY, RuleKey.of("xoo", "x3"));
try {
ruleActivator.deactivate(key);
fail();
} catch (BadRequestException e) {
assertThat(e).hasMessage("Rule not found: xoo:x3");