@After public void tearDown() throws InterruptedException, PatientNotFoundException { String uuid = patient.getFacility().getFacilityId(); deletePatient(patient); if (uuid != null) { facilityAdapter.deleteFacility(uuid); } conceptAdapter.deleteConcept(causeOfDeath.getUuid()); eventListenerRegistry.clearListenersForBean("mrsTestListener"); }