title: JUnit Local Test - 'Unresolved reference: test'
body: <h1>Expected</h1>
  
  <p>Importing libraries such as <code>androidx.test:core:1.2.0</code>, <code>androidx.test.ext:truth:1.2.0</code>, <code>com.google.truth:truth:0.44</code>, and etc. into a <strong>local JUnit</strong> test class named <em>ExampleUnitTest.kt</em>.</p>
  
  <h1>Observed</h1>
  
  <h3>Error</h3>
  
  <blockquote>
    <p>Unresolved reference: test</p>
  </blockquote>
  
  <h3>Implementation</h3>
  
  <p><em>ExampleUnitTest.kt</em></p>
  
  <pre><code>import androidx.test.core.app.ApplicationProvider.getApplicationContext
  import com.google.common.truth.Truth.assertThat
  </code></pre>