title: Android Dagger2 JUnit generated TestComponent class not recognizing/recognized in TestClass
body: <p>Bit of intro here</p>
  
  <ul>
  <li>Project has <code>core</code> and <code>app</code> components</li>
  <li>Some utility classes are placed in <code>core</code> component to ease the JUnit tests in other modules</li>
  <li>Dagger is used across all the modules</li>
  </ul>
  
  <p>Here is the project structure</p>
  
  <pre><code>core
   ___src
   ______main
   _________com.core
   ____________CoreComponent
   ______test
   _________com.core.test
   ____________SomeMockData
  
   ___build/generated/source/kapt
   ______coreDebug
   _________com.core
   ____________DaggerCoreComponent
  
  app
   ___src
   ______main
   _________com.foo
   ____________AwesomeComponent
   ____________ConcreteClassA
   ______test
   _________com.foo
   ____________TestAweseomeComponent
   ____________MyJUnitTest
  
   ___build/generated/source/kapt
   ______appDebug
   _________com.foo
   ____________DaggerAwesomeComponent
   ______appDebugUnitTest
   _________com.foo
   ____________DaggerTestAwesomeComponent
  
  </code></pre>
  
  <p>In app <code>build.gradle</code>, core added as both main and test depencency </p>
  
  <pre><code>implementation project(':core')
  testImplementation project(':core')
  </code></pre>
  
  <p>Dagger 2 - added for codegen, and it successfully generates DaggerTestComponent</p>
  
  <pre><code>testImplementation dagger.xx  
  kaptTest daggerProcessor.xx
  </code></pre>
  
  <p>There are two issues in here</p>
  
  <ol>
  <li><p><code>SomeMockData</code> placed inside <code>core/test</code>  is not accessible in <code>app/test</code> sources (IDE doesn't show any error though). While running <code>MyJUnitTest</code> it throws the error.</p></li>
  <li><p>Generated <code>DaggerTestAwesomeComponent</code> not detecting <code>TestAwesomeComponent</code> and <code>DaggerTestAwesomeComponent</code> is not visible in <code>MyJUnitTest</code>. As we know the generated <code>DaggerAwesomeComponent</code> works simply fine.</p></li>
  </ol>
  
  <blockquote>
    <p>NOTE: For simplicity I left out the injector classes, <code>MyJUnitTest_MembersInjector</code> is generated as well. As I have @Inject in the test class</p>
  </blockquote>