use mockito to implement methods