// we use a nice control.
MockControl control = MockControl.createNiceControl(InterfaceFab.class);
addControl(control);
InterfaceFab fab = (InterfaceFab) control.getMock();
ClassFactory cf = newClassFactory(fab);
fab.addInterface(BeanInterface.class);
fab.addInterface(BeanSubInterface.class);
fab.addMethod(new MethodSignature(String.class, "beanMethod", null, null));
fab.createInterface();
control.setReturnValue(null);
replayControls();
InterfaceSynthesizerImpl is = new InterfaceSynthesizerImpl();