private ClassFactory newClassFactory(InterfaceFab fab)
{
MockControl control = newControl(ClassFactory.class);
ClassFactory cf = (ClassFactory) control.getMock();
cf.newInterface("UNKNOWN");
control.setMatcher(new AggregateArgumentsMatcher(new TypeMatcher()));
control.setReturnValue(fab);
return cf;
}