Boyscout remove too many spaces
Refactored ServiceRegistryStub to a Mock

Added ability to mimic behavior of ServiceRegistry.
This can be achieved by implementing the internal
ServiceRegistryMock.Mocker interface.
Handy for testing for exceptions and such.
Added tests for handling exception