title: In Angular test case, Make static method call from a service where HTTP get will load json which is stored. And return the json back to service
body: <p>I am new Angular test case. And struck with loading JSON via HTTP call.</p>
  <ul>
  <li>So basically from a service spec file: &quot;url-service.spec&quot; it calls a static method which is in another service: &quot;load-json.service.spec&quot;.</li>
  <li>Here in &quot;load-json.pservice.spec&quot; it makes HTTP get call to load json and also subscribes there itself and then returns only JSON.
  [NOTE: It doesn't return observable back to url-service].</li>
  </ul>
  <p>We can call static method using spyOn but I could not figure out how to inject HTTP and load json and subscribe there</p>
  <p>I really need help!! And Thanks a lot in advance</p>