m_logString = "";
reorderAdvicesTestMethod();
assertEquals("before1 before2 invocation after2 after1 ", m_logString);
// get the pointcut by name (can also be retrieved by method meta-data)
Pointcut pointcut = SystemLoader.getSystem("tests").
getAspectManager().
getPointcutManager(ASPECT_NAME).
getPointcut("pc1 || pc2 || pc3");
// get the advices
List advices = pointcut.getAroundAdviceIndexTuples();
NameIndexTuple tuple1 = (NameIndexTuple)advices.get(0);
NameIndexTuple tuple2 = (NameIndexTuple)advices.get(1);
// reorder the advices
advices.set(0, tuple2);
advices.set(1, tuple1);
// set the reordered advices
pointcut.setAroundAdviceIndexTuples(advices);
}