{
File webXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/web.xml");
File portletXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/portlet.xml");
File jetspeedPortletXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/jetspeed-portlet.xml");
JetspeedDescriptorService descriptorService = new JetspeedDescriptorServiceImpl(new PortletAppDescriptorServiceImpl());
InputStream webDescriptor = new FileInputStream(webXmlFile);
InputStream portletDescriptor = new FileInputStream(portletXmlFile);
InputStream jetspeedPortletDescriptor = new FileInputStream(jetspeedPortletXmlFile);
ClassLoader paClassLoader = Thread.currentThread().getContextClassLoader();
String appName = "TestRegistry";
String contextPath = "/TestRegistry";
long paChecksum = MultiFileChecksumHelper.getChecksum(new File[] {webXmlFile, portletXmlFile, jetspeedPortletXmlFile});
portletApp = descriptorService.read(appName, contextPath, webDescriptor, portletDescriptor, jetspeedPortletDescriptor, paClassLoader);
portletApp.setName(appName);
portletApp.setContextPath(contextPath);
portletApp.setChecksum(paChecksum);
assertNotNull("App is null", portletApp);