context.getResource("/WEB-INF/myportlet.application");
contextc.setReturnValue(null);
replayControls();
ApplicationGlobals globals = new ApplicationGlobalsImpl();
PortletApplicationSpecificationInitializer init = new PortletApplicationSpecificationInitializer();
init.setContext(context);
init.setGlobals(globals);
init.initialize(config);
verifyControls();
IApplicationSpecification spec = globals.getSpecification();
assertEquals("myportlet", spec.getName());
assertEquals(new WebContextResource(context, "/WEB-INF/myportlet.application"), spec
.getSpecificationLocation());
}