fdo#76607: Writer unit test for this.

Change-Id: Ia69283a9998c233784c0da0f7a65f58a6c102596