export MyServiceMock {
  spies: { [id: string]: jasmine.Spy }
  _spies(method: string): jasmine.Spy {
    if ( !this.spies[method] ) {
      this.spies[method] =  jasmine.createSpy(method);
    }
    return this[method] = this.spies[method];
  }
}
// Usage:
myServiceMock._spy('getLoggedInUserId').and.callFake(() => {})