MockControl componentc = newControl(IComponent.class);
IComponent component = (IComponent) componentc.getMock();
MockControl beanProviderc = newControl(IBeanProvider.class);
IBeanProvider beanProvider = (IBeanProvider) beanProviderc.getMock();
Location l = fabricateLocation(21);
Object bean = new Object();
component.getBeans();
componentc.setReturnValue(beanProvider);
beanProvider.getBean("fred");
beanProviderc.setReturnValue(bean);
replayControls();
BeanBinding binding = new BeanBinding("param", vc, l, component, "fred");