title: Mock a private property
body: <p>Lets say we have a class like this:</p>
  
  <pre class="lang-kotlin prettyprint-override"><code>class Whatever {
      private var something = false
  
      fun aMethod(): Int {
          return if( something ) {
              1
          } else {
              0
          }
      }
  }
  </code></pre>
  
  <p>According to the <a href="http://mockk.io/#private-functions-mocking--dynamic-calls" rel="noreferrer">documentation</a>, it looks like I should be able to do the following:</p>
  
  <pre class="lang-kotlin prettyprint-override"><code>val classUnderTest = spyk(Whatever())
  
  every { classUnderTest getProperty "something" } returns true
  
  assertThat(classUnderTest.aMethod()).isEqualTo(1)
  </code></pre>
  
  <p>but instead I get the error: <code>io.mockk.MockKException: Missing calls inside every { ... } block</code></p>
  
  <p>I'm using mockk 1.8.5, kotlin 1.2.51</p>