Move reply mocking into its own helper class.