@Test
public void testIsSharedFormWithPortletSession() throws Exception {

	MockRenderRequest renderRequest = mockRenderRequest();
	PortletSession portletSession = renderRequest.getPortletSession(true);
	Assert.assertNotNull(portletSession);
	portletSession.setAttribute("shared", Boolean.TRUE);
	DDMFormDisplayContext createDDMFormDisplayContext =
		createDDMFormDisplayContext(renderRequest);
	Assert.assertTrue(createDDMFormDisplayContext.isFormShared());
}