{
RequestContext requestContext = FragmentUtil.buildFullRequestContext();
try
{
PortletPlacementContext ppc = new PortletPlacementContextImpl(requestContext.getPage(),portletRegistry);
ContentFragment a_oFrag = ppc
.getFragmentAtNewCoordinate(new CoordinateImpl(0, 0, 0, 0));
Coordinate a_oCoordinate = ppc.moveAbsolute(a_oFrag, new CoordinateImpl(
0, 0, 0, 1));
assertEquals(a_oCoordinate.getOldCol(), 0);
assertEquals(a_oCoordinate.getOldRow(), 0);
assertEquals(a_oCoordinate.getNewCol(), 0);
assertEquals(a_oCoordinate.getNewRow(), 1);
// Should be the second fragment now that the first has been moved
a_oFrag = ppc.getFragmentAtNewCoordinate(new CoordinateImpl(0, 0,
0, 0));
assertEquals(a_oFrag.getId(), "2");
assertEquals(a_oFrag.getName(), "frag2");
a_oFrag = ppc.getFragmentAtNewCoordinate(new CoordinateImpl(0, 0,
0, 1));
assertEquals(a_oFrag.getId(), "1");
assertEquals(a_oFrag.getName(), "frag1");
} catch (PortletPlacementException e)
{