mocking framework test case