mockito driven test cases