MethodSignature sig = new MethodSignature(void.class, "frob", null, null);
IComponentSpecification spec = newSpec();
MockControl cfc = newControl(ClassFactory.class);
ClassFactory cf = (ClassFactory) cfc.getMock();
MockControl fabc = newControl(ClassFab.class);
ClassFab fab = (ClassFab) fabc.getMock();
// We force the uid to 97 in setUp()
cf.newClass("$Insert_97", baseClass);
cfc.setReturnValue(fab);
fab.addMethod(Modifier.PUBLIC, sig, "method body");
fabc.setReturnValue(null);