Adjusted name of method used to activate HasMockObjects.