FormType mockFormType = mock(FormType.class);
when(mockFormType.getName()).thenReturn(EXAMPLE_FORM_PROPERTY_TYPE_NAME);
when(mockFormProperty.getType()).thenReturn(mockFormType);
TaskFormData mockFormData = mock(TaskFormData.class);
when(mockFormData.getFormKey()).thenReturn(EXAMPLE_FORM_KEY);
when(mockFormData.getDeploymentId()).thenReturn(EXAMPLE_DEPLOYMENT_ID);
List<FormProperty> mockFormProperties = new ArrayList<FormProperty>();
mockFormProperties.add(mockFormProperty);
when(mockFormData.getFormProperties()).thenReturn(mockFormProperties);
return mockFormData;
}