when(atlasEntityStore.createOrUpdate(any(EntityStream.class),anyBoolean())).thenThrow(newRuntimeException("Simulating exception in processing message"));
when(atlasEntityStore.createOrUpdate(any(EntityStream.class),anyBoolean())).thenThrow(newRuntimeException("Simulating exception in processing message"));