@Test
public void showEditPersonForm() {
Person person = PersonTestUtil.createModelObject(PERSON_ID, FIRST_NAME, LAST_NAME);
when(personServiceMock.findById(PERSON_ID)).thenReturn(person);
Model model = new BindingAwareModelMap();
RedirectAttributes attributes = new RedirectAttributesModelMap();
String view = controller.showEditPersonForm(PERSON_ID, model, attributes);
verify(personServiceMock, times(1)).findById(PERSON_ID);
verifyNoMoreInteractions(personServiceMock);
assertEquals(PersonController.PERSON_EDIT_FORM_VIEW, view);
PersonDTO formObject = (PersonDTO) model.asMap().get(PersonController.MODEL_ATTIRUTE_PERSON);
assertNotNull(formObject);
assertEquals(person.getId(), formObject.getId());
assertEquals(person.getFirstName(), formObject.getFirstName());
assertEquals(person.getLastName(), formObject.getLastName());