Mocking of the recognition object for testing.