lock
Refactor: Extract function
doco formatting
use _ in mock argument