title: only classes are allowed on the left hand side of a class literal when using Mockito and kotlin
body: <p>I used Android studio's conversion tool to convert existing java test class.</p>
  
  <p>I am getting this error : </p>
  
  <blockquote>
    <p>only classes are allowed on the left hand side of a class literal</p>
  </blockquote>
  
  <p>Here is the test case used : </p>
  
  <p>Java</p>
  
  <pre><code>doAnswer(answerVoid(
              (OnDataListListener&lt;List&lt;BEntity&gt;&gt; myCallback) -&gt; myCallback.onSuccess(mList))).when(
              mInteractor).performGetBList(any(OnDataListListener.class), anyBoolean());
  </code></pre>
  
  <p>Kotlin</p>
  
  <pre><code>doAnswer(answerVoid { listener: OnDataListListener&lt;List&lt;BEntity&gt;&gt; -&gt;
        listener.onSuccess(
            emptyList())
      }).`when`&lt;DragonInteractor&gt;(mInteractor)
          .performGetBList(any&lt;OnDataListListener&gt;(OnDataListListener&lt;*&gt;::class.java),
              anyBoolean())
  </code></pre>
  
  <p>So how to use generic params in this case? Thanks.</p>