//The process didn't finish yet
Assert.assertEquals(0, proceduresEndedCount);
// Ok, no more fire!
ProceduresMGMTService.getInstance().notifyProcedures(
MessageToEventConverter.convertMessageToEvent(new FireExtinctedMessage(emergency.getId(), new Date())));
Thread.sleep(5000);
//The emergency has ended
Assert.assertEquals(1, proceduresEndedCount);