### Question:
AssigneeFieldInitializer implements FieldInitializer<AssigneeEditorFieldDefinition> { @Override public void initialize(AssigneeEditorFieldDefinition field, FieldElement fieldElement, FormGenerationContext context) { field.setDefaultValue(fieldElement.getParams().getOrDefault("defaultValue", "")); field.setType(AssigneeType.valueOf(fieldElement.getParams().getOrDefault("type", "USER"))); field.setMax(Integer.valueOf(fieldElement.getParams().getOrDefault("max", "-1"))); }  @Override boolean supports(FieldDefinition fieldDefinition); @Override void initialize(AssigneeEditorFieldDefinition field,
                           FieldElement fieldElement,
                           FormGenerationContext context);  }### Answer:
@Test public void testInitializeWithParams() { fieldElementParams.clear(); fieldElementParams.put(MAX_PARAM, MAX); initializer.initialize(field, fieldElement, context); verify(field).setMax(any()); assertEquals(Integer.valueOf(MAX), field.getMax()); }
@Test public void testInitializeWithoutParams() { fieldElementParams.clear(); initializer.initialize(field, fieldElement, context); verify(field).setMax(any()); assertEquals(Integer.valueOf(-1), field.getMax()); }