title: PowerMockito Verify times always passes
body: <p>I am trying to use <code>Powermockiti.verify(mockObj, times(1))</code> to ascertain a static void method has been called once but even if I change the value of <code>times()</code> to any other number it still passes.</p>
  
  <p>// Class to be tested:</p>
  
  <pre><code>package nl.naturalis.nba.etl;
  
  public class Person { 
    public static void someVoidMethod() {
      System.out.println("someVoidMethod Called");
    }
  }
  </code></pre>
  
  <p>// Test Class:</p>
  
  <p>/**
   * 
   */</p>
  
  <pre><code>package com.test.using.mockito
  
  import org.junit.After;
  import org.junit.Before;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.mockito.Mockito;
  import org.powermock.core.classloader.annotations.PowerMockIgnore;
  import org.powermock.core.classloader.annotations.PrepareForTest;
  import org.powermock.modules.junit4.PowerMockRunner;
  import static org.mockito.Mockito.times;
  import static org.mockito.Mockito.never;
  import static org.mockito.Mockito.atMost;
  import org.powermock.api.mockito.PowerMockito;
  
  @RunWith(PowerMockRunner.class)
  @PrepareForTest(Person.class)
  @PowerMockIgnore("javax.management.*")
  @SuppressWarnings({"static-method"})
  public class PersonTest {
  
    /**
     * @throws java.lang.Exception
     */
    @Before
    public void setUp() throws Exception {}
  
    /**
     * @throws java.lang.Exception
     */
    @After
    public void tearDown() throws Exception {}
  
    /**
     * Test method for {@link nl.naturalis.nba.etl.Person#someVoidMethod()}.
     */
    @Test
    public void testSomeVoidMethod() {
  
  /*    Person person = Mockito.mock(Person.class);
  
      person.someVoidMethod();    
      Mockito.verify(person, times(1));
      person.someVoidMethod();*/
  
     PowerMockito.mock(Person.class);
     Person.someVoidMethod();
     PowerMockito.verifyStatic(Person.class,times(6));
     Person.someVoidMethod();
  
    }
  }
  </code></pre>
  
  <p>Now if even if I change the value of times to 2 or any higher value it still passes.</p>
  
  <p>no matter what value I put in the <code>Mockito.times()</code> it always passes</p>
  
  <pre><code>   Person.someVoidMethod();
     PowerMockito.verifyStatic(Person.class,times(6));
     Person.someVoidMethod();
  </code></pre>
  
  <p>I have also tries using <code>VerificationModeFactory.times(6)</code> instead of <code>Mockito.times(6)</code> but really doesn't make any difference.</p>