MDL-39846 implement event sink for unit testing