* Test notInList according to Encounters of getEncountersInPatientList method, of class
* PatientListServiceImpl.
*/
@Test
public void testGetEncountersInPatientListShouldNotReturnEncountersAccordingToNotInList() {
PatientList mainList = new PatientList();
PatientList notInList1 = new PatientList();
PatientList notInList2 = new PatientList();
mainList.setName("GetPatientsTestList");
notInList1.setName("TestPatientsNotInList");
notInList2.setName("TestPatientsNotInList2");
notInList1.setSearchQuery("?encounterType=61ae96f4-6afe-4351-b6f8-cd4fc383ctyy"
+ "&startDate=2000-01-01T00:00:00&endDate=2004-08-16T00:00:00");
notInList2.setSearchQuery("?encounterType=61ae96f4-6afe-4351-b6f8-cd4fc383ctyy"
+ "&startDate=2004-08-16T00:00:00&endDate=2009-01-02T00:00:00");
s.savePatientList(notInList1);
s.savePatientList(notInList2);
mainList.setSearchQuery("?encounterType=61ae96f4-6afe-4351-b6f8-cd4fc383ctyr"
+ "&startDate=2000-01-01T00:00:00&endDate=2009-01-02T00:00:00¬InList=" + notInList1.getUuid() + ","
+ notInList2.getUuid());
List<Encounter> encs = s.getEncountersInPatientList(mainList);
//now checking that notInList works
assertEquals(encs.size(), 1);
//assertEquals(s.getPatientsInPatientList(mainList).get(0).getUuid())
System.out.println(s.getPatientsInPatientList(mainList).get(0).getUuid());