protected function getObjectStateHandler() { if (!isset($this->objectStateHandler)) { $this->objectStateHandler = new Handler($this->getGatewayMock(), $this->getMapperMock()); } return $this->objectStateHandler; }