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