/** Test of isAdmin method, of class PersonFacadeImpl. */
  @Test
  public void testIsAdmin() {
    when(personDao.findById(person.getId())).thenReturn(person);

    Assert.assertEquals(personFacade.isAdmin(personDTO), person.isAdmin());
    Assert.assertNotEquals(personFacade.isAdmin(personDTO), person2.isAdmin());
  }
 /** Test of findById method, of class PersonFacadeImpl. */
 @Test
 public void testFindById() {
   when(personDao.findById(person.getId())).thenReturn(person);
   PersonDTO personDTOLoc = personFacade.findPersonById(person.getId());
   Assert.assertEquals(beanMappingService.mapTo(person, PersonDTO.class), personDTOLoc);
 }
 /** Test of edit method, of class PersonFacadeImpl. */
 @Test
 public void testEdit() {
   when(personDao.findById(personDTO.getId())).thenReturn(person);
   personFacade.editPerson(personDTO);
 }