using the Mockito and Junit libraries