title: Test cases to performClick for custom ClicklLstener
body: <p>I have created one custom click listener like below:</p>
  <pre><code>abstract class SingleClickListener : View.OnClickListener {
      private var lastTimeClicked: Long = 0
      private val defaultInterval: Int = 1000
      override fun onClick(v: View) {
          if (SystemClock.elapsedRealtime() - lastTimeClicked &lt; defaultInterval) {
              return
          }
          lastTimeClicked = SystemClock.elapsedRealtime()
          performClick(v)
      }
  
      abstract fun performClick(v: View)
  }
  </code></pre>
  <p>And then in my fragment I have used like below :</p>
  <pre><code>binding.textview.setOnClickListener(object : SingleClickListener() {
              override fun performClick(v: View) {
                  //navigate to next screen
              }
          })
  </code></pre>
  <p>Now I want to write a test case to perform this custom click. I have tried like below but it is not working and if I'll remove SingleClickListener then the same test case is working fine.</p>
  <pre><code>val fragmentScenario = launchFragmentInContainerAndGetFragmentScenario()
              fragmentScenario.onFragment { fragment -&gt;
                  val textview = fragment.view?.findViewById&lt;AppCompatTextView&gt;(R.id.textview)
  
                  textview?.performClick()
              }
  </code></pre>
  <p>Can anyone help me how can I call custom ClickListener's performClick function through test case?</p>