@Test(expected = InvalidClassException.class) public void ruleBookBeanShouldHandlePojosInRuleAdapterWithNoAnnotation() throws InvalidClassException { RuleBookBean ruleBookBean = new RuleBookBean(); ruleBookBean.addRule(new Object()); }
@SuppressWarnings("unchecked") public void addRule(Object rule) throws InvalidClassException { super.addRule(new RuleAdapter(rule)); }
RuleBookBean extends DecisionBook { @SuppressWarnings("unchecked") public void addRule(Object rule) throws InvalidClassException { super.addRule(new RuleAdapter(rule)); } }
RuleBookBean extends DecisionBook { @SuppressWarnings("unchecked") public void addRule(Object rule) throws InvalidClassException { super.addRule(new RuleAdapter(rule)); }  }
RuleBookBean extends DecisionBook { @SuppressWarnings("unchecked") public void addRule(Object rule) throws InvalidClassException { super.addRule(new RuleAdapter(rule)); }  @SuppressWarnings("unchecked") void addRule(Object rule); }
RuleBookBean extends DecisionBook { @SuppressWarnings("unchecked") public void addRule(Object rule) throws InvalidClassException { super.addRule(new RuleAdapter(rule)); }  @SuppressWarnings("unchecked") void addRule(Object rule);  }