RuleExecutorContainer { public void setAddDefaultRuleExecutors(boolean addDefaultRuleExecutors) { this.addDefaultRuleExecutors = addDefaultRuleExecutors; }  @PostConstruct void registerRuleExecutors(); void setCustomRuleExecutors(Map<String, RuleExecutor<?, ?>> customRuleExecutors); void setCustomRuleExecutor(String executorName, RuleExecutor<?, ?> ruleExecutor); RuleExecutor<?, ?> getRuleExecutorByName(String executorName); void setAddDefaultRuleExecutors(boolean addDefaultRuleExecutors); void setRuleExecutorBeanRegistrants(List<KeyedBeanRegistrant> registrants);  }
@Test public void testSetAddDefaultRuleExecutors() { executorContainer.setAddDefaultRuleExecutors(false); executorContainer.registerRuleExecutors(); try { executorContainer.getRuleExecutorByName("required"); fail(); } catch (IllegalArgumentException e) { assertEquals("No rule executor with name: required", e.getMessage()); } }