@Test
public void testFindAllPatientByFirstNameAndLastName() {

	List<Patient> patients = new ArrayList<Patient>();
	Patient patient = mock(Patient.class);
	Patient patient2 = mock(Patient.class);
	patients.add(patient);
	patients.add(patient2);
	when(
			patientRepository.findAllByFirstNameLikesAndLastNameLikes(
					"%john%", "%smith%")).thenReturn(patients);
	PatientAdminDto patientAdminDto = mock(PatientAdminDto.class);
	PatientAdminDto patientAdminDto2 = mock(PatientAdminDto.class);
	when(modelMapper.map(patient, PatientAdminDto.class)).thenReturn(
			patientAdminDto);
	when(modelMapper.map(patient2, PatientAdminDto.class)).thenReturn(
			patientAdminDto2);
	assertEquals(
			Arrays.asList(patientAdminDto, patientAdminDto2),
			sut.findAllPatientByFirstNameAndLastName(new String[] { "john",
					"smith" }));
}