public static synchronized <T> void verifyStatic(Class<T> mockedClass, VerificationMode verificationMode) {
        Mockito.verify(mockedClass, verificationMode);
    }
public static synchronized < T > void verifyStatic ( Class < T > mockedClass , VerificationMode verificationMode ) { Mockito . verify ( mockedClass , verificationMode ) ; }
Verifies certain behavior of the <code>mockedClass</code> happened at least once / exact number of times
/ never. E.g:
<p>
<pre>
verifyStatic(ClassWithStaticMethod.class, times(5));
ClassWithStaticMethod.someStaticMethod(&quot;was called five times&quot;);

verifyStatic(ClassWithStaticMethod.class, atLeast(2));
ClassWithStaticMethod.someStaticMethod(&quot;was called at least two times&quot;);

//you can use flexible argument matchers, e.g:
verifyStatic(ClassWithStaticMethod.class, atLeastOnce());
ClassWithStaticMethod.someMethod(&lt;b&gt;anyString()&lt;/b&gt;);
</pre>
<p>
<b>times(1) is the default</b> and can be omitted
<p>

@param mockedClass      the mocked class behavior of that have to be verified.
@param verificationMode times(x), atLeastOnce() or never()