title: Angular2 RC5 Mock Activated Route Params
body: <p>I need to be able to mock the activated route parameters to be able to test my component.</p>
  
  <p>Here's my best attempt so far, but it doesn't work.</p>
  
  <pre><code>{ provide: ActivatedRoute, useValue: { params: [ { 'id': 1 } ] } },
  </code></pre>
  
  <p>The ActivatedRoute is used in the actual component like this:</p>
  
  <pre><code>this.route.params.subscribe(params =&gt; {
      this.stateId = +params['id'];
  
      this.stateService.getState(this.stateId).then(state =&gt; {
          this.state = state;
      });
  });
  </code></pre>
  
  <p>The error I get with my current attempt is simply:</p>
  
  <p><code>TypeError: undefined is not a constructor (evaluating 'this.route.params.subscribe')</code></p>
  
  <p>Any help would be greatly appreciated.</p>