public void testManyMethodsInterceptor() throws Exception
{
addInterceptor(TransactionalInterceptor.class);
startContainer(TonsOfMethodsInterceptedClass.class);
TonsOfMethodsInterceptedClass instance = getInstance(TonsOfMethodsInterceptedClass.class);
for (int i = 0; i < 130; i++)
{
String methodName = "method" + i;
Method m = instance.getClass().getDeclaredMethod(methodName);
m.invoke(instance);
}
}