Implementing a unit test for writeProtect.
Authored by: gavare 2019-06-07
Parent: [r5498]
Child: [r5500]