title: Update ActivityTestRule to ActivityScenario
body: <p>ActivityTestRule has been deprecated and it's the tool used in the tutorial I'm working through.</p>
  <pre><code>@RunWith(AndroidJUnit4::class)
  
  
  @get:Rule
  val activityRule = ActivityTestRule(MovieSpotterTestApp::class.java, true, false)
  
  private val mockWebServer = MockWebServer()
  
  @Before
  fun setup() {
      mockWebServer.start(8080)
      IdlingRegistry.getInstance().register(
          ServiceBuilder.getClient()?.let {
              OkHttp3IdlingResource.create(
                  &quot;okhttp&quot;,
                  it
              )
          }
      )
  }
  
  @Test
  fun testSuccessfulResponse() {
      mockWebServer.dispatcher = object : Dispatcher() {
          override fun dispatch(request: RecordedRequest): MockResponse {
              return MockResponse()
                  .setResponseCode(200)
                  .setBody(readStringFromFile(&quot;success_response.json&quot;))
          }
  
      }
      activityRule.launchActivity(null)
  </code></pre>
  <p>The <a href="https://developer.android.com/reference/androidx/test/rule/ActivityTestRule" rel="nofollow noreferrer">docs</a> say I should just be able to change it straight out to <code>ActivityScenario.launch(Class)</code>, but then the line where I call <code>activityRule.launchActivity(null)</code> won't run.</p>
  <p>How would I go about updating this?</p>