title: JMockit: show obscure error message about missing invocation 1 to error
body: <p>I have to test a class <code>UserAdmin</code> whose dependency is on a database class. I have mocked the database class to test the <code>UserAdmin</code> class. The database class has a method <code>isAdmin()</code> which decides if the user is the administrator or not. The <code>UserAdmin</code> class has a method called <code>removeUser()</code> for which I am getting this error. the <code>removeUser()</code> method does not allow to remove the user if the user is an Admin
  Following is the code for which I am seeing this error.</p>
  <pre><code>@Test
      //testing remove user method of UserAdmin - remove Admin
          public void testremoveUserAdmin() throws SQLException{
              new Expectations() {{
                  
                  dBConnection.isAdmin(&quot;admin&quot;);
                  times=1;
                  result = true;
                  
              }};             
           assertEquals(false,userAdmin.removeUser(&quot;admin&quot;));
  </code></pre>
  <p>When I put the above <code>assertEquals()</code>, it gives a missing invocation error but when I replace false with true in the assertion, it says expected was true but it was false. I am not sure where why I am getting this error. A similar code run for similar methods like <code>isAdmin()</code> worked fine. Please help</p>