title: How to return mocked Data in Observable?
body: <p>Suppose we have this method in a service that return an Observable:</p>
  
  <pre><code>getSearchResults(request: LocationSearchRequest){
        return this.http.get(this.getApiUrl(request))
              .map(res =&gt; &lt;LocationSearchResponse&gt; res.json())    
              .catch(this.handleError);    
  }
  </code></pre>
  
  <p>How can I modify this code to return the mocked data ratehr then making an actual GET requesr?</p>
  
  <pre><code>import { MOCKEDDATA } from './mocked-data';
  </code></pre>
  
  <p>It's not a duplicate question. This has nothing to do with testing, jasmine and angualr2 testing api.</p>