Simple mocks for a group middleware layer.

This will need to be changed substantially.