public function testDetachLoadBalancerFromSubnets()
{
$subnetsToRemove = array('subnet-1');
$elb = $this->getElbMock();
$repo = $elb->getEntityManager()->getRepository('Elb:LoadBalancerDescription');
$elb->loadBalancer->describe(self::LB_NAME_TEST);
$result = $elb->loadBalancer->detachFromSubnets(self::LB_NAME_TEST, $subnetsToRemove);
$this->assertEquals($subnetsToRemove, $result);
$subnets = $repo->find(self::LB_NAME_TEST)->subnets;
$this->assertEquals(array('subnet-2'), $subnets);
}