fdo#80501: Write test for this first.

Change-Id: I43c0018f445394387ef28590b56ca38344e61c11
fdo#80501: Ensure that we notify each listener only once.

Change-Id: If2ce4643ff58c7c2ba326d749698dd5196a108dc