ArgumentCaptor<org.drools.event.rule.AfterActivationFiredEvent> captor = ArgumentCaptor.forClass(org.drools.event.rule.AfterActivationFiredEvent.class);
verify(ael,
times(1)).afterActivationFired(captor.capture());
AfterActivationFiredEvent aafe = captor.getValue();
Assert.assertThat(((Number) aafe.getActivation().getDeclarationValue("$sum")).intValue(),
is(95));
Assert.assertThat(((Number) aafe.getActivation().getDeclarationValue("$cnt")).intValue(),
is(3));
}