title: How can I check the constructur arguments of a mockk Mock?
body: <p>I have the following code (in Kotlin):</p>
  <pre class="lang-kotlin prettyprint-override"><code>class X {
      fun foo() {
          val A(1, true, &quot;three&quot;)
          val b = B()
          b.bar(A)
      }
  }
  </code></pre>
  <p>What I want to to is find out what <code>A</code> has been instantiated with.</p>
  <p>My test code looks like so:</p>
  <pre class="lang-kotlin prettyprint-override"><code>// Needed for something else
  every { anyConstructed&lt;A&gt;().go() } returns &quot;testString&quot;
  
  // What I'm using to extract A
  val barSlot = slot&lt;A&gt;()
  verify { anyConstructed&lt;B&gt;().bar(capture(barSlot)) }
  val a = barSlot.captured
  </code></pre>
  <p>How can I check what values <code>A</code> has been instantiated with now I've managed to capture the mock that was created when it was constructed (thanks to the <code>every</code> statement)?</p>
  <p>Thanks!</p>