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