MockControl parserControl = newControl(ISpecificationParser.class);
ISpecificationParser parser = (ISpecificationParser) parserControl.getMock();
i.setParser(parser);
parser.parseApplicationSpecification(appSpecResource);
parserControl.setReturnValue(as);
ApplicationGlobals ag = new ApplicationGlobalsImpl();
i.setGlobals(ag);