Mocks will have a logger that can be set.
add #to_hash method