public function testCreateAppCookieStickinessPolicy()
{
$loadBalancerName = self::LB_NAME_TEST;
$elb = $this->getElbMock();
$lb = $elb->loadBalancer->describe($loadBalancerName)->get(0);
$this->assertEquals(2, count($lb->policies->appCookieStickinessPolicies));
$policy = new AppCookieStickinessPolicyData('app-csp-policyname-11', 'app-csp-cookiename-11');
$lb->policies->appCookieStickinessPolicies->append($policy);
$policy->create();
$this->assertEquals($policy, $lb->policies->appCookieStickinessPolicies->get(2));
$this->assertEquals($policy->cookieName, $lb->policies->appCookieStickinessPolicies->get(2)->cookieName);
$policy->create('app-csp-cookiename-12');
$this->assertEquals($policy->cookieName, 'app-csp-cookiename-12');
$this->assertEquals($lb->policies->appCookieStickinessPolicies->get(2)->cookieName, 'app-csp-cookiename-12');
$lb->createAppCookieStickinessPolicy('app-csp-policyname-22', 'app-csp-cookiename-22');
$this->assertEquals($lb->policies->appCookieStickinessPolicies->get(3)->cookieName, 'app-csp-cookiename-22');
$this->assertEquals($lb->policies->appCookieStickinessPolicies->get(3)->policyName, 'app-csp-policyname-22');
}