added mockito integration test