Fixed #23289 -- Added mock as a test dependency.

available