title: How to resolve Bad ComponentName while traversing activity parent metadata?
body: <p>I am writing an unit test for a class, which has call to <code>addParentStack(XActivity.class)</code>.  XActivity is declared at manifest and has </p>
  
  <pre><code>&lt;meta-data
                  android:name="android.support.PARENT_ACTIVITY"
                  android:value="y.YActivity" /&gt;. 
  </code></pre>
  
  <p>YActivity is under another module.
  Code runs fine. But while running Unit test i am getting error as </p>
  
  <blockquote>
    <p>Bad ComponentName while traversing activity parent metadata</p>
  </blockquote>
  
  <pre><code> java.lang.IllegalArgumentException: android.content.pm.PackageManager$NameNotFoundException: testclass/YActivity
  </code></pre>
  
  <p>So, what i have to do extra to run this unit test?</p>