title: Angular 2 Unit test Error: Cannot resolve all parameters for 'RequestOptions'
body: <p>I want to test a simple component that have some Dependencies. So among others I have to provide some providers.</p>
  
  <pre><code>/* tslint:disable:no-unused-variable */
  
  import { By }           from '@angular/platform-browser';
  import { DebugElement, provide } from '@angular/core';
  
  import {
    beforeEach,
    beforeEachProviders,
    describe,
    expect,
    it,
    inject,
    fakeAsync,
    TestComponentBuilder
  } from '@angular/core/testing';
  
  import { AuthHttp, AuthConfig } from 'angular2-jwt';
  import { Router, provideRouter } from '@angular/router';
  import { Http, ConnectionBackend, RequestOptions, HTTP_PROVIDERS } from '@angular/http';
  import { LogoutButtonComponent } from './logout-button.component';
  import { UserService } from '../../services/index';
  
  describe('Component: LogoutButtonComponent', () =&gt; {
  
    let component: LogoutButtonComponent;
  
    beforeEachProviders(() =&gt; [
      LogoutButtonComponent,
      Http,
      provide(AuthHttp, { useFactory: Http }),
      provide(AuthConfig, { useValue: new AuthConfig() }),
      ConnectionBackend,
      RequestOptions,
      UserService
    ]);
  
    beforeEach(inject([AuthHttp, UserService, LogoutButtonComponent],
      (comp: LogoutButtonComponent) =&gt; {
        component = comp;
      }));
  
    it('should inject UserService', () =&gt; {
      // My test here
    });
  
  });
  </code></pre>
  
  <p>Though I'm getting the following error:</p>
  
  <blockquote>
    <p>Error: Cannot resolve all parameters for 'RequestOptions'(?). Make sure that all the parameters are decorated with Inject or have valid type annotations and that 'RequestOptions' is decorated with Injectable.</p>
  </blockquote>
  
  <p>Am I missing something oin the <code>beforeEachProviders</code> function?</p>
  
  <p>Note: This question is related only with the Unit Testing of Angular 2  with Jasmine. I'm not searching infos relate bootstraping app as this is already ok in my app and there are other related questions here.</p>