@Test
public void testPriorityFromAnnotation() {

    @org.jeasy.rules.annotation.Rule(priority = 1)
    class MyRule {
        @Condition
        public boolean when() { return true; }
        @Action
        public void then() { }
    }
    Object rule = new MyRule();
    Rule proxy = RuleProxy.asRule(rule);
    assertEquals(1, proxy.getPriority());
}