set variable value using mockito
<p>I have:</p>

<pre><code>    SomeClass a = spy(SomeClass.class)
</code></pre>

<p><code>SomeClass</code> has <code>private int myValue</code>.</p>

<p>I want to set <code>myVlaue</code> to 3.</p>

<p>How can I do that using Mockito?</p>

<p>(If not possible with Mockito, what is my next best option preferably without having to discard my code that uses Mockito).</p>

<p>Notes:</p>

<ul>
<li>Do not suggest to mock <code>getMyValue()</code>, I already know I can do that.</li>
<li>Do not suggest to add <code>setMyValue(int newMyValue)</code>, I do not want it.</li>
</ul>