Unit test — Junit Mockito

Testing with Stubs and Mocks: A Comprehensive Overview