@Test
public void testCreateDDMFormRenderingContext() {

	setDDMFormRendererTagInputs(1L, null, null, null, false, false);
	DDMForm ddmForm = new DDMForm();
	ddmForm.setDefaultLocale(LocaleUtil.US);
	DDMFormRenderingContext ddmFormRenderingContext =
		_ddmFormRendererTag.createDDMFormRenderingContext(ddmForm);
	Assert.assertNotNull(ddmFormRenderingContext.getContainerId());
	Assert.assertEquals(
		_ddmFormInstance.getGroupId(),
		ddmFormRenderingContext.getGroupId());
	Assert.assertNotNull(ddmFormRenderingContext.getHttpServletRequest());
	Assert.assertNotNull(ddmFormRenderingContext.getHttpServletResponse());
	Assert.assertEquals(LocaleUtil.US, ddmFormRenderingContext.getLocale());
	Assert.assertTrue(ddmFormRenderingContext.isViewMode());
	Assert.assertNotNull(ddmFormRenderingContext.getDDMFormValues());
	Assert.assertNotNull(ddmFormRenderingContext.getPortletNamespace());
	Assert.assertFalse(ddmFormRenderingContext.isReadOnly());
	Assert.assertFalse(ddmFormRenderingContext.isShowSubmitButton());
}