Mock final classes with Mockito
[https://i2.wp.com/igorski.co/wp-content/uploads/2018/05/Mockit-Junit-5-1.png]
One of the standard Mockito related questions I’ve come across is online is “Can
we mock final classes with Mockito?”. The answer to this question since Mockito
2 was introduced is “Yes, we can.”.
Example code
This