public void testEntities() throws Exception
{
PortletApplicationDefinition pa = registry.getPortletApplication(TEST_APP);
assertNotNull("Portlet Application", pa);
System.out.println("pa = " + pa.getId());
PortletDefinitionList portlets = pa.getPortletDefinitionList(); // .get(JetspeedObjectID.createFromString(TEST_PORTLET));
Iterator pi = portlets.iterator();
PortletDefinitionComposite pd = null;
while (pi.hasNext())
{
pd = (PortletDefinitionComposite) pi.next();
assertTrue("Portlet Def not found", pd.getName().equals("EntityTestPortlet"));