@Test
public void testFindVAppTemplate() throws Exception {
for (Org org : orgs) {
for (ReferenceType cat : org.getCatalogs().values()) {
Catalog response = api.getCatalog(cat.getHref());
for (ReferenceType resource : response.values()) {
if (resource.getType().equals(TerremarkVCloudMediaType.CATALOGITEM_XML)) {
CatalogItem item = api.getCatalogItem(resource.getHref());
if (item.getEntity().getType().equals(TerremarkVCloudMediaType.VAPPTEMPLATE_XML)) {
assertNotNull(api.findVAppTemplateInOrgCatalogNamed(org.getName(), response.getName(), item
.getEntity().getName()));