Dynamically create mocks for traversal.