@Test
  public void testGetCandidatePersonsToBeCurated() {
    Person person1 = PersonFactory.getInstance().create();
    person1.setCurationStatus(CurationStatus.PENDING);
    Person person2 = PersonFactory.getInstance().create();
    person2.setCurationStatus(CurationStatus.ACTIVE);
    ((NesPersonData) person2.getExternalData()).setUpdateRequested(new Date());
    Person person3 = PersonFactory.getInstance().create();
    person3.setCurationStatus(CurationStatus.ACTIVE);

    save(person1, person2, person3);
    List<Person> curationCandiates = bean.getCandidatePersonsToBeCurated();
    assertEquals(2, curationCandiates.size());
    assertTrue(curationCandiates.contains(person1));
    assertTrue(curationCandiates.contains(person2));
  }
 @Test
 public void testGetByExternalIdentifer() {
   Person person = PersonFactory.getInstance().create();
   bean.save(person);
   assertEquals(person, bean.getByExternalId(person.getExternalId()));
 }