Void method testing With Junit and Mockito This is a simple implementation for testing void methods. Just clone this repo and run the test case using: mvn clean test This project has only one test case. You can add more to check behaviour of different test functions. Happy learning!