AspectWerkz.getSystem("tests").register("testRegisterAdvice", advice);
assertNotNull(AspectWerkz.getSystem("tests").getAdvice("testRegisterAdvice"));
}
public void testFindAdviceByIndex() {
Advice advice = new PreAdvice() {
public void execute(final JoinPoint joinPoint) {
}
};
AspectWerkz.getSystem("tests").register("testFindAdviceByIndex", advice);
int index = AspectWerkz.getSystem("tests").getAdviceIndexFor("testFindAdviceByIndex");