title: Android Unit testing Mockk argument capture
body: <pre><code>interface SomeAPIHandler {
      fun getUserContent(apiInterface: APIInterface&lt;UserModel&gt;)
  }
  
  interface APIInterface&lt;T&gt; {
      fun onSuccess(responseModel: T)
      fun onError(errorModel: ErrorModel)
  }
  </code></pre>
  <p>In my presenter class, it is called like:</p>
  <pre><code>apiClient.getUserContent(object : APIInterface&lt;UserModel&gt; {
              override fun onSuccess(responseModel: UserModel) = handleSuccess(responseModel)
              override fun onError(errorModel: ErrorModel) = handleGetUserModelError()
  })
  </code></pre>
  <p>I am getting code coverage issue from SonarQube for this two lines in presentor class:</p>
  <pre><code>override fun onSuccess(responseModel: UserModel) = handleSuccess(responseModel)
  override fun onError(errorModel: ErrorModel) = handleGetUserModelError()
  </code></pre>
  <p>I am using mockk.io and I think i need to use <code>slot</code> for this. Can someone help how to cover this ?</p>