title: How can i test for the type of a method return in kotlin?
body: <p>So i am trying to develop some TDD skills and am doing a kata found online.</p>
  <p>I want to test that my mehthod will always return a list to any given valid argument.</p>
  <p>I tried</p>
  <pre><code>    @Test
      fun factorsOfShouldReturnAList(){
          assertThat(prime.factorsOf(1), `is`(List::class))
      }
  </code></pre>
  <p>but my test always fails with the following error:</p>
  <pre><code>&quot;java.lang.AssertionError: 
  Expected: is &lt;interface java.util.List (Kotlin reflection is not available)&gt;
       but: was &lt;[]&gt;
  Expected :is &lt;interface java.util.List (Kotlin reflection is not available)&gt;
  Actual   :&lt;[]&gt;&quot;
  </code></pre>