In this post I am not going to spend too much time on what JUnit is or how to use it. It is a unit test framework for…