title: How to mock just one static method in a class using Mockito?
body: <p>The following line seems to mock all static methods in the class:</p>
  <pre><code>MockedStatic &lt;Sample&gt; sampleMock = Mockito.mockStatic( Sample.class );
  sampleMock.when( () -&gt; Sample.sampleStaticMethod( Mockito.any( String.class ) ) ).thenReturn( &quot;response&quot; );
  </code></pre>
  <p>Is it possible to mock just one static method in a class?</p>