}
Assert.fail(TestException.class.getName() + " should have been thrown");
}
private InvocationConfiguration getConfiguration(Method m) {
MockStaticInvoker invoker = new MockStaticInvoker(m, new TestBeanImpl());
SourceInvocationConfiguration invocationConfiguration=new SourceInvocationConfiguration(m);
invocationConfiguration.addInterceptor(new MockSyncInterceptor());
invocationConfiguration.addRequestHandler(new MockHandler());
invocationConfiguration.setTargetInvoker(invoker);
invocationConfiguration.setTargetInterceptor(new InvokerInterceptor());