assertEquals("Failed to retrieve description of layout.", "layouts description", layoutsDef.getDescription());
Collection<LayoutDef> layoutDefs = layoutsDef.getLayoutDefs();
assertEquals(2, layoutDefs.size());
// Feed Layout
LayoutDef feedLayout = layoutsDef.getLayoutDef("feed");
assertNotNull(feedLayout);
assertEquals("Failed to retrieve description of individual layout", "layout description",
feedLayout.getDescription());
assertEquals(1, feedLayout.getLayoutItemDefs().size());
LayoutItemDef item = feedLayout.getLayoutItemDef("content");
assertNotNull(item);
assertEquals("Failed to retrieve description of layout item", "layout item description", item.getDescription());
List<ComponentDefRef> body = item.getBody();
assertEquals(1, body.size());
ComponentDefRef ref = body.get(0);
assertEquals("markup://aura:html", ref.getDescriptor().getQualifiedName());
assertEquals("inner", ref.getLocalId());
Collection<?> htmlAttribs = ((HashMap<?, ?>) ref.getAttributeDefRef("HTMLAttributes").getValue()).values();
assertEquals(1, htmlAttribs.size());
assertEquals("self", htmlAttribs.toArray()[0]);
assertNull(item.getCache());
// Menu Layout
LayoutDef menuLayout = layoutsDef.getLayoutDef("menu");
assertNotNull(menuLayout);
assertEquals("Menu layout was not specified any description.", null, menuLayout.getDescription());
assertEquals(1, menuLayout.getLayoutItemDefs().size());
item = menuLayout.getLayoutItemDef("content");
assertNotNull(item);
assertEquals("Content layout was not specified any description.", null, item.getDescription());
body = item.getBody();
assertEquals(1, body.size());
ref = body.get(0);