Built a mock in the test.