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