title: Test a method which calls another method from the viewChild using Jasmine
body: <p>I have this method that validates the component and it's calling out to this another component which is it's <code>ViewChild</code>. I am using the component using <code>this.ViewChildComponent.someMethod();</code> in the component which I am trying to test. I tried to use the <code>spyOn(viewChildComponent, 'someMethod').and.returnValue(true)</code>.
  But it says the <code>this.ViewChildComponent.someMethod() is undefined</code>. I have all the dependencies such as services for the <code>ViewChildComponent</code> on the providers. I even went a step forward and made the call that the <code>viewChildComponent</code> makes to its service to decide <code>someMethod();</code></p>
  
  <p>Any help would be awesome.</p>