fpc.setReturnValue(ToStringAdapter.class);
factory.newClass("NewClass", Object.class);
factoryControl.setReturnValue(cf);
cf.addInterface(ToStringAdapter.class);
cf.addField("_adapterRegistry", AdapterRegistry.class);
cf.addConstructor(new Class[]
{ AdapterRegistry.class }, null, "_adapterRegistry = $1;");
cfc.setMatcher(new AggregateArgumentsMatcher(new ArrayMatcher()));