Listing 7.11 Unit testing UserRegistrationCommand class