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

Fixed, thank-you.