PatientLegalRepresentativeAssociationServiceImpl implements
		PatientLegalRepresentativeAssociationService { @Override public PatientLegalRepresentativeAssociationDto getAssociationDtoFromLegalRepresentativeDto( LegalRepresentativeDto legalRepresentativeDto) { PatientLegalRepresentativeAssociationDto associationDto = new PatientLegalRepresentativeAssociationDto(); if (StringUtils.hasText(legalRepresentativeDto .getLegalRepresentativeTypeCode())) { associationDto.setLegalRepresentativeTypeCode(modelMapper.map( legalRepresentativeTypeCodeRepository .findByCode(legalRepresentativeDto .getLegalRepresentativeTypeCode()), LookupDto.class)); } else { associationDto.setLegalRepresentativeTypeCode(null); } if (legalRepresentativeDto.getRelationshipStartDate() != null) { associationDto.setRelationshipStartDate(legalRepresentativeDto .getRelationshipStartDate()); } else { associationDto.setRelationshipStartDate(null); } if (legalRepresentativeDto.getRelationshipEndDate() != null) { associationDto.setRelationshipEndDate(legalRepresentativeDto .getRelationshipEndDate()); } else { associationDto.setRelationshipEndDate(null); } return associationDto; } PatientLegalRepresentativeAssociationServiceImpl(
			PatientLegalRepresentativeAssociationRepository patientLegalRepresentativeAssociationRepository,
			PatientRepository patientRepository,
			LegalRepresentativeTypeCodeRepository legalRepresentativeTypeCodeRepository,
			ModelMapper modelMapper, UserContext userContext); @Override long countAllPatientLegalRepresentativeAssociations(); @Override void deletePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void deletePatientLegalRepresentativeById(Long legalRepId); @Override PatientLegalRepresentativeAssociation findPatientLegalRepresentativeAssociation(
			Long id); @Override List<PatientLegalRepresentativeAssociation> findAllPatientLegalRepresentativeAssociations(); @Override List<PatientLegalRepresentativeAssociationDto> findAllPatientLegalRepresentativeAssociationDtos(); @Override List<PatientProfileDto> findAllPatientLegalRepresentativeDto(); @Override List<PatientLegalRepresentativeAssociation> findPatientLegalRepresentativeAssociationEntries(
			int firstResult, int maxResults); @Override void savePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void savePatientLegalRepresentativeAssociationDto(
			PatientLegalRepresentativeAssociationDto patientLegalRepresentativeAssociationDto); @Override PatientLegalRepresentativeAssociation updatePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void updatePatientLegalRepresentativeAssociationDto(
			PatientLegalRepresentativeAssociationDto patientLegalRepresentativeAssociationDto); @Override List<LegalRepresentativeDto> getAllLegalRepresentativeDto(); @Override PatientLegalRepresentativeAssociationDto getAssociationDtoFromLegalRepresentativeDto(
			LegalRepresentativeDto legalRepresentativeDto); @Override PatientProfileDto getPatientDtoFromLegalRepresentativeDto(
			LegalRepresentativeDto legalRepresentativeDto);  }
@Test public void testGetAssociationDtoFromLegalRepresentativeDto() { patientLegalRepresentativeAssociationService .getAssociationDtoFromLegalRepresentativeDto(mock(LegalRepresentativeDto.class)); }