assertTrue(markers.contains(f.e));
assertTrue(markers.contains(f.e2));
assertTrue(markers.contains(f));
ComponentAdapter<H> adapterH = container.getComponentAdapterOfType(H.class);
assertNull(adapterH);
PortalContainer portal = PortalContainer.getInstance();
adapterH = portal.getComponentAdapterOfType(H.class);
assertNotNull(adapterH);
H h = container.getComponentInstanceOfType(H.class);
assertNull(h);
h = portal.getComponentInstanceOfType(H.class);
assertNotNull(h);
assertSame(h, portal.getComponentInstanceOfType(H.class));
assertSame(h, adapterH.getComponentInstance());
List<ComponentAdapter<H>> adaptersH = container.getComponentAdaptersOfType(H.class);
assertTrue(adaptersH == null || adaptersH.isEmpty());
adaptersH = portal.getComponentAdaptersOfType(H.class);
assertNotNull(adaptersH);
assertEquals(1, adaptersH.size());
assertSame(h, adaptersH.get(0).getComponentInstance());
List<H> allH = container.getComponentInstancesOfType(H.class);
assertTrue(allH == null || allH.isEmpty());
allH = portal.getComponentInstancesOfType(H.class);
assertNotNull(allH);
assertEquals(1, allH.size());
assertSame(h, allH.get(0));
}