public function mapHandler($sender, $param) { $map =& $param->getMap(); $map[$param->getKey()] = $param->getValue(); $this->assertTrue($param->getValue() instanceof Account); }