public void testFailure()
{
Location l = newLocation();
MockControl opc = newControl(EnhancementOperation.class);
EnhancementOperation op = (EnhancementOperation) opc.getMock();
InjectSpecification is = newInjectSpecification("myProperty", "object", "service:Foo", l);
MockControl workerc = newControl(InjectEnhancementWorker.class);
InjectEnhancementWorker worker = (InjectEnhancementWorker) workerc.getMock();
Map map = newMap("object", worker);
IComponentSpecification spec = newSpec(is);
Throwable t = new RuntimeException("Simulated failure.");