}
public void testMethod() throws Exception
{
Extender extender = new Extender();
InstanceAdvisor ia = ((InstanceAdvised)extender)._getInstanceAdvisor();
ia.appendInterceptor(new MyInterceptor());
MyInterceptor.method = false;
MyInterceptor.field = false;
extender.getExtender();
assertTrue(MyInterceptor.method);
assertTrue(MyInterceptor.field);
MyInterceptor.method = false;
MyInterceptor.field = false;
extender.setExtender(6);
assertTrue(MyInterceptor.method);
assertTrue(MyInterceptor.field);
MyInterceptor.method = false;
MyInterceptor.field = false;
extender.getBase();
assertTrue(MyInterceptor.method);
assertTrue(MyInterceptor.field);
MyInterceptor.method = false;
MyInterceptor.field = false;
extender.setBase(5);
assertTrue(MyInterceptor.method);
assertTrue(MyInterceptor.field);
AnExtender anextender = new AnExtender();
InstanceAdvisor ia2 = ((InstanceAdvised)anextender)._getInstanceAdvisor();
ia2.appendInterceptor(new MyInterceptor());
MyInterceptor.method = false;
MyInterceptor.field = false;
anextender.getExtender();
assertTrue(MyInterceptor.method);