Issue #3035454 by Maithri Shetty, Steven Jones: Replace deprecated method getMock calls with createMock