added a test case that uses mockito framework