Implemented testcases using Mockito