title: Jasmin + karma: "Error: Unexpected value 'HttpClient' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation."
body: <p>I'm using jasmine as a test framework and karma as a test runner. I'm trying to create an HttpClient object so I could create a service that as a depedency to this object:</p>
  <pre><code>TestBed.configureTestingModule({
      declarations: [HttpClient],
      imports: [HttpClient],
      providers: [HttpClient]
  });
  TestBed.get(HttpClient);
  </code></pre>
  <p>But I'm getting the following error:</p>
  <blockquote>
  <p>Error: Unexpected value 'HttpClient' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation.</p>
  </blockquote>
  <p>Does anyone have an idea how to solve this?</p>
  <p>Follows all the code:</p>
  <pre><code>import { I18nService } from &quot;../../services/i18n.service&quot;;
  import { TestBed, inject, async } from &quot;@angular/core/testing&quot;;
  import { EditionHistoryEventsModel } from &quot;./dropdown.edition.history.events.model&quot;;
  import { HttpClient } from &quot;@angular/common/http&quot;;
  import { TestUtil } from &quot;../../utils/test.uti&quot;;
  
  
  
  describe('DropDownEditionHistoryItemModel', () =&gt; {
      let i18nService: I18nService;
       
      beforeAll(() =&gt; {
          TestBed.configureTestingModule({
              declarations: [HttpClient],
              imports: [HttpClient],
              providers: [HttpClient]
          });
          i18nService = TestUtil.geti18nService(TestBed.get(HttpClient));
      });
      it('asdasd', () =&gt; {
          let model: EditionHistoryEventsModel = new EditionHistoryEventsModel(i18nService);
          expect(true).toBeTruthy();
      });
  });
  </code></pre>