### Question:
MixedJavaTimeDMNBaseDecision extends MixedJavaTimeFEELLib implements DMNDecision<BigDecimal, LocalDate, OffsetTime, ZonedDateTime, Duration>, AnnotationTarget { @Override public Rule getRuleAnnotation(int ruleIndex) { String methodName = String.format("rule%d", ruleIndex); Class<? extends MixedJavaTimeDMNBaseDecision> cls = this.getClass(); Method[] declaredMethods = cls.getDeclaredMethods(); for (Method method : declaredMethods) { if (methodName.equals(method.getName())) { return method.getAnnotation(Rule.class); } } return null; }  @Override DRGElement getDRGElementAnnotation(); @Override Rule getRuleAnnotation(int ruleIndex);  }### Answer:
@Test public void testGetRuleAnnotation() { Rule ruleAnnotation = baseDecision.getRuleAnnotation(0); assertNull(ruleAnnotation); }