fdo#76912: Write a test for this.

Change-Id: I3b14447130c32d4b21010380f7901c0d20004ffc