Examples of testing command and query methods using mocks