title: How to mock lambda parameter in mockito-kotlin?
body: <p>I've got an interface:</p>
  <pre><code>interface DistanceChecker {
     fun checkDistance(locationData: LocationData, result: (Boolean) -&gt; Unit)
  }
  </code></pre>
  <p>I need to mock this method, but I don't call it explicitly, it's injected into logic.
  This construction does not work:</p>
  <pre><code>    doAnswer {
          it.getArgument&lt;(Boolean) -&gt; Unit&gt;(1).invoke(true)
  
          null
      }.`when`(distanceChecker).checkDistance(
          same(
              LocationData(
                  LatLng(.0, .0),
                  LatLng(.0, .0),
                  .0
              )
          ),
          any()
      )
  </code></pre>
  <p>By this I got a stubbing error:</p>
  <pre><code>- this invocation of 'checkDistance' method:
  distanceChecker.checkDistance(
  LocationData(point=0.0_0.0, location=0.0_0.0, zoneRadius=0.0),
  (kotlin.Boolean) -&gt; kotlin.Unit
  );
  - has following stubbing(s) with different arguments:
  1. distanceChecker.checkDistance(
  LocationData(point=0.0_0.0, location=0.0_0.0, zoneRadius=0.0),
  null
  );
  </code></pre>
  <p>Is there any way to mock lambda like that?</p>