@Test
public void testGetPatientsActiveEncountersNoPatientId()
{

  expectedException.expect(SystemException.class);
  expectedException.expectMessage(
      "FHIR validation failed - No identifier for Patient with system \"patientIdSystem1\" defined");
  final Bundle result = new Bundle();
  final Bundle.Entry entry1 = getEncounterResultBundleEntry(
      "encounter1",
      null,
      EncounterClassEnum.OUTPATIENT,
      EncounterStateEnum.FINISHED,
      new DateTime(2016, 10, 1, 12, 0),
      new DateTime(2016, 10, 2, 13, 0),
      "ward1",
      "Test Ward",
      "Test Location",
      "Test Doctor");
  result.addEntry(entry1);
  mockFhirClientResult(result);
  fhirEncounterProvider.getPatientsActiveEncounters(Lists.newArrayList("patient1"));
}