title: Mock static data in a service - angular 2 testing
body: <p>In my <strong>ANGULAR 2</strong> application there is a service; that contains a static reference property.</p>
  
  <pre><code>export class MyService {
      public static OneProperty: ClassA;
  }
  </code></pre>
  
  <p>And here is a sample implementation of the method I am going to test in my ts file.</p>
  
  <pre><code>export class TestComponent() {
      oneProperty: User;
  
      public NumberOfUsers(): string {
      this.oneProperty = MyService.OneProperty.someThing;
      return this.oneProperty;
      }
  }
  </code></pre>
  
  <p>How can I mock the data in the static variable for the test cases? Whenever I try to mock the data in useClass/useValue format, I am getting a undefined value for <em>MyService.OneProperty</em>.</p>