Question: what is the difference between junit and mockito?
Answer: JUnit is a framework that helps with writing and running your unit tests. Mockito (or any other mocking tool) is a framework that you specifically use to efficiently write certain kind of tests. ... In order to do that, you very often have to create "test doubles" that you provide to an object of your "class under test".