TaskRegistry registry = TaskRegistry.init(project);
MockControl tkCtrl = MockClassControl.createControl(SkipTask.class);
SkipTask task = (SkipTask)tkCtrl.getMock();
TaskAdapter adapter = new TaskAdapter();
adapter.setProxy(task);
MockControl evCtrl = MockClassControl.createControl(BuildEvent.class);
BuildEvent event = (BuildEvent)evCtrl.getMock();
event.getTask();
evCtrl.setReturnValue(adapter, 2);