title: Cannot access internal components from test source with Android
body: <p>I have got the following structure:</p>
  
  <pre><code>build.gradle
  src
   - main
     - AndroidManifest.xml
     - kotlin 
       - pkg
         - MyClass.kt (internal class MyClass)
   - test
     - kotlin
       - pkg
         - MyClassTest.kt   
  </code></pre>
  
  <p>In <code>MyClassTest.kt</code> I reference the <code>internal class MyClass</code>.</p>
  
  <hr>
  
  <p>The <code>build.gradle</code>:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  //apply plugin: 'java'
  //apply plugin: 'kotlin'
  
  android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
  
    sourceSets {
      main.java.srcDirs += 'src/main/kotlin'
      test.java.srcDirs += 'src/test/kotlin'
    }
  }
  
  dependencies {
    testCompile 'junit:junit:4.12'
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  }
  
  buildscript {
    ext.kotlin_version = '1.0.0-beta-2423'
    repositories {
      mavenCentral()
    }
    dependencies {
      classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
  }
  
  repositories {
    mavenCentral()
  }
  </code></pre>
  
  <p>Now when I run <code>./gradlew test</code>, I get the following error:</p>
  
  <blockquote>
    <p>Cannot access 'MyClass': it is 'internal' in 'pkg'</p>
  </blockquote>
  
  <p>However, when I switch the plugins to use <code>java</code> instead of <code>com.android.application</code>, and <code>kotlin</code> instead of <code>kotlin-android</code>, the tests do succeed.</p>
  
  <p>How can I reference internal classes from my test sources when using the Android plugins?</p>