public void testFoundInRootDir() throws Exception
{
PortletConfig config = newConfig("myportlet");
WebContext context = newMock(WebContext.class);
IApplicationSpecification specification = newSpecification();
// Any arbitrary file will work here.
URL fakeURL = getClass().getResource("hivemodule.xml");
expect(context.getResource("/WEB-INF/myportlet/myportlet.application")).andReturn(null);
expect(context.getResource("/WEB-INF/myportlet.application")).andReturn(fakeURL);
Resource expectedResource = new WebContextResource(context,
"/WEB-INF/myportlet.application");
ISpecificationParser parser = newParser(expectedResource, specification);