Examples of how to test command and query messages and when to use mocks.