title: How to unit test if an angular 2 component contains another component
body: <p>I'm quite new to angular 2.</p>
  
  <p>I have a component which in turn has some other components in its template.</p>
  
  <p>How do I write unit tests to check if my parent component consists of other components.</p>
  
  <p>Mentioning a sample or directing me to a resource would be really helpful.</p>
  
  <p>MyComponent.ts:</p>
  
  <pre><code>import { Component } from '@angular/core';
  @Component({
  selector: 'my-component',
  templateUrl: `&lt;div&gt;
  &lt;other-component&gt;&lt;/other-component&gt;
  &lt;/div&gt;`
  })
  export class MyComponent{
  
  }
  </code></pre>
  
  <p>OtherComponent.ts:</p>
  
  <pre><code>import { Component } from '@angular/core';
  @Component({
  selector: 'other-component',
  templateUrl: `&lt;div&gt;
  &lt;h1&gt;Other Component&lt;/h1&gt;
  &lt;/div&gt;`
  })
  export class OtherComponent{
  
  }
  </code></pre>