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

    ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithPriorityMethodHavingNonIntegerReturnType());
}