@Test
public void testIsSharedFormWithoutPortletSession() throws Exception {

	MockRenderRequest renderRequest = mockRenderRequest();
	Assert.assertNull(renderRequest.getPortletSession(false));
	renderRequest.setParameter("shared", Boolean.TRUE.toString());
	DDMFormDisplayContext createDDMFormDisplayContext =
		createDDMFormDisplayContext(renderRequest);
	Assert.assertTrue(createDDMFormDisplayContext.isFormShared());
}