Collection servicesCollection = app.getJetspeedServices();
assertNotNull("Metadata services is null", servicesCollection);
assertEquals("Expected 2 service definitions", servicesCollection.size(), 2);
Object[] services = servicesCollection.toArray();
JetspeedServiceReference service = (JetspeedServiceReference)services[0];
System.out.println("**** service = " + service.getName());
assertEquals( ((JetspeedServiceReference)services[0]).getName(), "PortletRegistryComponent");
assertEquals( ((JetspeedServiceReference)services[1]).getName(), "PortletEntityAccessComponent");
}