/**
  * @covers WindowsAzure\ServiceManagement\Models\InputEndpoint::setRoleName
  * @covers WindowsAzure\ServiceManagement\Models\InputEndpoint::getRoleName
  */
 public function testSetRoleName()
 {
     // Setup
     $expected = 'rolename';
     $inputendpoint = new InputEndpoint();
     // Test
     $inputendpoint->setRoleName($expected);
     // Assert
     $this->assertEquals($expected, $inputendpoint->getRoleName());
 }
 /**
  * Creates a new InputEndpoint from parsed response body.
  * 
  * @param array $parsed The parsed response body in array representation.
  * 
  * @return InputEndpoint
  */
 public static function create($parsed)
 {
     $inputEndpoint = new InputEndpoint();
     $vip = Utilities::tryGetValue($parsed, Resources::XTAG_VIP);
     $port = Utilities::tryGetValue($parsed, Resources::XTAG_PORT);
     $roleName = Utilities::tryGetValue($parsed, Resources::XTAG_ROLE_NAME);
     $inputEndpoint->setPort($port);
     $inputEndpoint->setRoleName($roleName);
     $inputEndpoint->setVip($vip);
     return $inputEndpoint;
 }