Stubbing in the constructor.