PersonFacadeEjb implements PersonFacade { @Override public Boolean isValidPersonUuid(String personUuid) { return personService.exists(personUuid); }  @Override List<String> getAllUuids(); @Override List<PersonNameDto> getMatchingNameDtos(UserReferenceDto userRef, PersonSimilarityCriteria criteria); @Override List<SimilarPersonDto> getSimilarPersonsByUuids(List<String> personUuids); @Override Boolean isValidPersonUuid(String personUuid); @Override Map<Disease, Long> getDeathCountByDisease(CaseCriteria caseCriteria, boolean excludeSharedCases, boolean excludeCasesFromContacts); @Override List<PersonDto> getPersonsAfter(Date date); @Override List<PersonDto> getByUuids(List<String> uuids); @Override List<PersonDto> getDeathsBetween(Date fromDate, Date toDate, DistrictReferenceDto districtRef, Disease disease); @Override PersonReferenceDto getReferenceByUuid(String uuid); @Override PersonDto getPersonByUuid(String uuid); @Override JournalPersonDto getPersonForJournal(String Uuid); @Override PersonDto savePerson(PersonDto source); @Override void validate(PersonDto source); @Override List<PersonQuarantineEndDto> getLatestQuarantineEndDates(Date since); @Override List<PersonFollowUpEndDto> getLatestFollowUpEndDates(Date since, boolean forSymptomJournal); @Override Date getLatestFollowUpEndDateByUuid(String Uuid); @Override boolean setSymptomJournalStatus(String personUuid, SymptomJournalStatus status); void onPersonChanged(PersonDto existingPerson, Person newPerson); Person fillOrBuildEntity(@NotNull PersonDto source, Person target); PersonDto convertToDto(Person p, Pseudonymizer pseudonymizer, boolean inJurisdiction); static PersonReferenceDto toReferenceDto(Person entity); static SimilarPersonDto toSimilarPersonDto(Person entity); static PersonDto toDto(Person source);  }
@Test public void testIsValidPersonUuid() { final PersonDto person = creator.createPerson("James", "Smith", Sex.MALE, 1980, 1, 1); assertTrue(getPersonFacade().isValidPersonUuid(person.getUuid())); Assert.assertFalse(getPersonFacade().isValidPersonUuid("2341235234534")); }