public void testWhenLoggingDisabled()
{
logMock = mock( Log.class );
echo = ( Echo ) new CglibProxyFactory()
.createInterceptorProxy( new EchoImpl(), new LoggingInterceptor( ( Log ) logMock.proxy() ),
new Class[]{ Echo.class } );
logMock.expects( once() ).method( "isDebugEnabled" ).will( returnValue( false ) );
echo.echoBack( "Hello" );
}