title: Get Context When Using JUnit5 on Android
body: <p>I'm using JUnit5 on Android when write unit tests. I want to get <code>Context</code> in test classes. When using JUnit4, I can get using <code>private val context = ApplicationProvider.getApplicationContext&lt;Context&gt;()</code>, but it need to <code>@RunWith(AndroidJUnit4::class)</code>. RunWith is in JUnit4. How can get <code>Context</code> in JUnit5 test classes?</p>
  <p>My JUnit4 test function:</p>
  <pre><code>    //given
      val expected = context.getDrawable(R.drawable.up)
      every { mockModel.change } returns 1.0
  
      //when
      val result = viewState.getChangeBackground(context)
  
      //then
      assertThat(result?.constantState).isEqualTo(expected?.constantState)
  </code></pre>