private MutablePicoContainer pico = new DefaultPicoContainer(caFactory);
private PointcutsFactory cuts = aspects.getPointcutsFactory();
public void testInterceptor() {
StringBuffer log = new StringBuffer();
aspects.registerInterceptor(cuts.instancesOf(Dao.class), cuts.allMethods(), new LoggingInterceptor(log));
pico.registerComponentImplementation(Dao.class, DaoImpl.class);
Dao dao = (Dao) pico.getComponentInstance(Dao.class);
verifyIntercepted(dao, log);
}