TRUNK-3586 Update unit testing environment to use mocks