methodMetaData.setName("removeAdviceTestMethod");
methodMetaData.setParameterTypes(new String[]{});
methodMetaData.setReturnType("void");
methodMetaData.setExceptionTypes(new String[]{});
ExecutionPointcut methodPointcut = (ExecutionPointcut)SystemLoader.getSystem("tests").
getAspectManager().
getPointcutManager(ASPECT_NAME).
getExecutionPointcuts(m_classMetaData, methodMetaData).get(0);
List advices = methodPointcut.getAroundAdviceIndexTuples();
NameIndexTuple adviceTuple = (NameIndexTuple)advices.remove(0);
methodPointcut.setAroundAdviceIndexTuples(advices);
m_logString = "";
removeAdviceTestMethod();
assertEquals("before2 invocation after2 ", m_logString);
// restore it for other tests
advices.add(0, adviceTuple);
methodPointcut.setAroundAdviceIndexTuples(advices);
}