/**
  * @covers WindowsAzure\Common\Configuration::setProperty
  */
 public function testSetProperty()
 {
     // Setup
     $key = 'prop_key';
     $value = 'prop_value';
     $config = new Configuration();
     // Test
     $config->setProperty($key, $value);
     // Assert
     $this->assertEquals($value, $config->getProperty($key));
 }
 /**
  * Validates that the given config setting exists in the $config and it's value
  * is doesn't satisfy empty().
  * 
  * @param string                            $setting  The config setting name.
  * @param WindowsAzure\Common\Configuration $config   The configuration object. 
  * @param string                            $name     The setting code name.
  * @param string                            $restType The REST type name.
  * 
  * @return none
  */
 private function _validateConfigSetting($setting, $config, $name, $restType)
 {
     $missingKeyMsg = sprintf(Resources::MISSING_CONFIG_SETTING_KEY_MSG, $name, $restType);
     $missingValueMsg = sprintf(Resources::MISSING_CONFIG_SETTING_VALUE_MSG, $name);
     $properties = $config->getProperties();
     Validate::isTrue(array_key_exists($setting, $properties), $missingKeyMsg);
     $value = $config->getProperty($setting);
     $isNullEmpty = empty($value);
     Validate::isTrue(!$isNullEmpty, $missingValueMsg);
 }