Arrays.fill(cpro, 0);
ClassAgent aca = getNewClassAgent();
aca.addInterceptor(MethodMatcherFactory.matcher(PUBLIC), new MethodCounter(cpub));
aca.addInterceptor(MethodMatcherFactory.matcher(PROTECTED), new MethodCounter(cpro));
Class<? extends Hippo> c = aca.define(Nutzs.cd(), Hippo.class);// RA.class;
Hippo r = Mirror.me(c).born();
Vegetarians.run(r, 78);
r.doSomething(BEH.run);
try {
r.doSomething(BEH.lecture);
fail();
}
catch (Throwable e) {}
try {
r.doSomething(BEH.fly);
fail();
}
catch (Throwable e) {}
assertEquals("[3, 1, 1, 1]", Json.toJson(cpub));
assertEquals("[2, 2, 0, 0]", Json.toJson(cpro));