title: Angular2 karma test set @Input variable
body: <p>I am running an angular2 unit test. the component has an Input binding.
  I tried to set in manually like following: </p>
  
  <pre><code> fixture = TestBed.createComponent(Step2Component);
  component = fixture.componentInstance;
  component.notificationModel = new NotificationModel([], 'test');
  fixture.detectChanges();
  </code></pre>
  
  <p>But it fails. On the first line, component's ngOnInit is called and there the notficationModel is used. On that point, that variable is not set.
  Which is the proper way to set the bind variable?</p>
  
  <p>Thanks.</p>