TRUNK-3586 Update unit testing environment to use mocks

Simplifies mocking services accessed through Context.get...Service().