usage of mock and stub