pico.registerComponentImplementation(LoggingInterceptor.class);
pico.registerComponentImplementation("intercepted", DaoImpl.class);
pico.registerComponentImplementation("notIntercepted", DaoImpl.class);
StringBuffer log = (StringBuffer) pico.getComponentInstance("log");
Dao intercepted = (Dao) pico.getComponentInstance("intercepted");
Dao notIntercepted = (Dao) pico.getComponentInstance("notIntercepted");
verifyIntercepted(intercepted, log);
verifyNotIntercepted(notIntercepted, log);
}