Documented new mocks functionality and wrapped it all in an #ifdef DEBUG to prevent it from being shipped.