I want to mock a constructor and return a mock object when the constructor is called. This can be achieved using powermockito\'s whenNew method like this.
Power