### Question:
ProgrammaticProxyBean { public ITargetObject createProxy(ITargetObject object) { AspectJProxyFactory factory = new AspectJProxyFactory(object); factory.addAspect(AspectJClass.class); return factory.getProxy(); }  ITargetObject createProxy(ITargetObject object);  }### Answer:
@Test public void testCreateProxy() throws Exception { ITargetObject object = programmaticProxyBean.createProxy(new TargetObject()); object.targetPlainMethod(); }