registry = TaskRegistry.init(xhTask);
TestGroupTask group = new TestGroupTask();
group.setProject(project);
group.setName("foo");
TestLogger logger = new TestLogger(registry, group, "foo", registry.getCurrentTest());
registry.setCurrentTest(logger);
MockControl ctrl = MockClassControl.createControl(Task.class);
Task mock = (Task)ctrl.getMock();
mock.getProject();