assertEquals( "messagea", echo.echoBack( "message" ) );
}
public void testWithMultipleInterceptors()
{
Echo echo = ( Echo ) new InterceptorChain( new Interceptor[] { new SuffixInterceptor( "a" ), new SuffixInterceptor( "b" ) } ).createProxyProvider( new CglibProxyFactory(), new EchoImpl(), new Class[] { Echo.class } ).getObject();
assertEquals( "messageba", echo.echoBack( "message" ) );
}