private ISpecificationParser newParser(Resource input, IApplicationSpecification specification)
{
MockControl control = newControl(ISpecificationParser.class);
ISpecificationParser parser = (ISpecificationParser) control.getMock();
parser.parseApplicationSpecification(input);
control.setReturnValue(specification);
return parser;
}