public function testCannotSetProtectedConfigKey()
{
$config = $this->createConfig();
$this->setExpectedException('InvalidArgumentException', 'Configuration key "home" is protected and cannot be overwritten.');
$config->set('home', '/root', Config::CONFIG_SYSTEM);
}