@Test
public void testGetParametersShouldUseFileEntryTitle() {

	DDMFormField ddmFormField = new DDMFormField("field", "numeric");
	DocumentLibraryDDMFormFieldTemplateContextContributor spy = createSpy();
	DDMFormFieldRenderingContext ddmFormFieldRenderingContext =
		new DDMFormFieldRenderingContext();
	ddmFormFieldRenderingContext.setHttpServletRequest(
		createHttpServletRequest());
	ddmFormFieldRenderingContext.setReadOnly(true);
	ddmFormFieldRenderingContext.setValue(
		"{\"uuid\": \"0000-1111\", \"title\": \"Old Title\"}");
	Map<String, Object> parameters = spy.getParameters(
		ddmFormField, ddmFormFieldRenderingContext);
	Assert.assertEquals("New Title", parameters.get("fileEntryTitle"));
}