public function testSetAndGetEndpoints()
 {
     $endpoint1 = $this->client->createEndpoint('s1');
     $this->client->addEndpoint($endpoint1);
     $endpoint2 = $this->client->createEndpoint('s2');
     $endpoint3 = $this->client->createEndpoint('s3');
     $this->client->setEndpoints(array($endpoint2, $endpoint3));
     $this->assertEquals(array('s2' => $endpoint2, 's3' => $endpoint3), $this->client->getEndpoints());
 }