@Test(expected = IllegalArgumentException.class)
public void conditionMethodMustReturnBooleanType() {

    ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithConditionMethodHavingNonBooleanReturnType());
}