try
{
PortletPlacementContext ppc = new PortletPlacementContextImpl(requestContext.getPage(),portletRegistry);
// Check the fragments
Fragment a_oFrag = ppc.getFragmentById("1");
assertNotNull("null fragment with id 1", a_oFrag);
assertEquals(a_oFrag.getId(), "1");
assertEquals(a_oFrag.getName(), "frag1");
a_oFrag = ppc.getFragmentById("2");
assertNotNull("null fragment with id 2", a_oFrag);
assertEquals(a_oFrag.getId(), "2");
assertEquals(a_oFrag.getName(), "frag2");
a_oFrag = ppc.getFragmentById("3");
assertNotNull("null fragment with id 3", a_oFrag);
assertEquals(a_oFrag.getId(), "3");
assertEquals(a_oFrag.getName(), "frag3");
a_oFrag = ppc.getFragmentById("4");
assertNotNull("null fragment with id 4", a_oFrag);
assertEquals(a_oFrag.getId(), "4");
assertEquals(a_oFrag.getName(), "frag4");
a_oFrag = ppc.getFragmentById("5");
assertNotNull("null fragment with id 5", a_oFrag);
assertEquals(a_oFrag.getId(), "5");
assertEquals(a_oFrag.getName(), "frag5");
} catch (PortletPlacementException e)
{
fail("creating the PortletPlacementManager failed");
}