public void test() throws Exception {
ClassWriter cw = new ClassWriter(0);
CheckClassAdapter ca = new CheckClassAdapter(cw);
AddMethodAdapter am = new AddMethodAdapter(ca);
generateBasicClass(am);
checkClass(defineClass("C", cw.toByteArray()));
}
protected void checkClass(Class c) throws Exception {
Object o = c.newInstance();
Method m = c.getMethod("getThis");