Writing (albeit, clumsily) a test for the registerusercommandhandler