@Test
public void testConvertFromPatientDto_basic() {

	EhrPatientClientDto eClientDto = new EhrPatientClientDto();
	PatientDto patientDto = mock(PatientDto.class);
	when(patientDto.getLastName()).thenReturn("lastname");
	when(patientDto.getFirstName()).thenReturn("firstname");
	when(patientDto.getCountry()).thenReturn("usa");
	when(patientDto.getGenderCode()).thenReturn("M");
	when(patientDto.getBirthDate()).thenReturn("19970101");
	when(patientDto.getEmailHome()).thenReturn("myemail@mail.com");
	when(patientDto.getStreetAddress()).thenReturn("streetaddress");
	when(patientDto.getCity()).thenReturn("columbia");
	when(patientDto.getState()).thenReturn("MD");
	when(patientDto.getZip()).thenReturn("21046");
	when(patientDto.getHomePhone()).thenReturn("4431111111");
	when(patientDto.getSsnNumber()).thenReturn("777-777-7777");
	when(patientDto.getMaritalStatus()).thenReturn("married");
	when(patientDto.getReligion()).thenReturn("religion");
	when(patientDto.getRace()).thenReturn("race");
	when(patientDto.getLanguage()).thenReturn("english");
	helper.convertFromPatientDto(patientDto, true, eClientDto);
	assertEquals("lastname", eClientDto.getFamilyName());
	assertEquals("firstname", eClientDto.getGivenName());
	assertEquals("usa", eClientDto.getCountry());
	assertEquals("M", eClientDto.getSex());
	assertEquals("19970101", eClientDto.getBirthdate());
	assertEquals(null, eClientDto.getStreetAddress());
	assertEquals(null, eClientDto.getCity());
	assertEquals(null, eClientDto.getState());
	assertEquals(null, eClientDto.getZip());
	assertEquals(null, eClientDto.getHomePhone());
	assertEquals("777-777-7777", eClientDto.getPid().get(0).getPatientID());
	assertEquals(null, eClientDto.getMaritalStatus());
	assertEquals(null, eClientDto.getReligion());
	assertEquals(null, eClientDto.getRace());
	assertEquals(null, eClientDto.getLanguage());
}