Mocking non-virtual methods of a class