How to mock String#equals method by PowerMockito
<p>I have a method contains String comparison:</p>

<pre><code>if (stringA.equals(stringB)) { ... }
</code></pre>

<p>And in the unit test, I tried:</p>

<pre><code>String stringA = PowerMockito.mock(String.class);
String stringB = PowerMockito.mock(String.class);
when(stringA.equals(stringB)).thenReturn(false);
</code></pre>

<p>But this would actually return true.  Could anyone tell me how to mock String#equals method by PowerMockito?  Thanks.</p>