title: how to resolve - Parameter specified as non-null is null
body: <p>I have unit test in which I am trying to check is a use case is called with the right parameters but I get an error</p>
  <p><code>java.lang.IllegalArgumentException: Parameter specified as non-null is null: method com.xx.xxx.clean.orderview.domain.OnStandUseCaseCoroutine$Params.&lt;init&gt;, parameter serviceType</code></p>
  <pre><code>@Test
  fun `when notifyOnStand is called then we create a TimestampedAction with the correct user id, vehicle, timestamp and pass that to the usecase`() {
      val actionCaptor = argumentCaptor&lt;TimestampedAction&gt;()
      val timestamp = DateTime.now()
  
      every(noServiceRequiredBus.get()).thenReturn(Observable.just(REQUESTED))
      every(timingsUpdater.timestampCalculator(any(), any())).thenReturn(timestamp)
  
      baseOrderViewPresenter.setView(view)
      baseOrderViewPresenter.notifyOnStand()
  
      runBlocking {
          verify(onStandUseCaseCoroutine).run(OnStandUseCaseCoroutine.Params(any(), any(), capture(actionCaptor)))
      }
  }
  </code></pre>
  <p>Use case which will get called when when called <code>baseOrderViewPresenter.notifyOnStand()</code> from tets case</p>
  <pre><code>class OnStandUseCaseCoroutine @Inject constructor(
      private val orderRepository: OrderRepository,
      private val serviceOrderTypeProvider: ServiceOrderTypeProvider
  ) : UseCaseCoroutine&lt;GenericResponse, OnStandUseCaseCoroutine.Params&gt; (){
  
      override suspend fun run(params: Params) =
          orderRepository.notifyOnStandSuspend(serviceOrderTypeProvider.apiPathFor(params.serviceType), params.id, params.action)
  
      data class Params(val serviceType: String, val id: String, val action: TimestampedAction)
  }
  </code></pre>
  <p>Presenter layer which has the call to use case</p>
  <pre><code>private fun onstandUseCaseCoroutines(serviceType: String, id: String, action: TimestampedAction, callback: (GenericResponse?) -&gt; Unit) {
      try {
          onStandUseCaseCoroutine(OnStandUseCaseCoroutine.Params(serviceType, id, action)) {
              callback.invoke(it)
          }
      } catch (exception: Exception) {
          onStandResponseErrors()
      }
  }
  </code></pre>
  <p>how can I fix this please</p>
  <p>I tried changing to bellow code but that did not fix it, I am not sure what to do the <code>capture(actionCaptor)</code> bit if that is the issue</p>
  <pre><code> runBlocking {
          verify(onStandUseCaseCoroutine).run(OnStandUseCaseCoroutine.Params(anyString(), anyString(), capture(actionCaptor)))
      }
  </code></pre>
  <p>Any suggestions please</p>
  <p>Thanks
  R</p>