Added Mocking method for Unit Testing