public function testDeleteLoadBalancer()
{
$this->skipIfEc2PlatformDisabled();
$repository = $this->elb->getEntityManager()->getRepository('Elb:LoadBalancerDescription');
$ret = $this->elb->loadBalancer->delete(self::getTestName(self::LB_NAME_FUNC_TEST_1));
$one = $repository->find(self::getTestName(self::LB_NAME_FUNC_TEST_1));
$this->assertNull($one);
$two = $repository->find(self::getTestName(self::LB_NAME_FUNC_TEST_2));
$this->assertNotNull($two);
$two->delete();
//Object $two does not unset in this case.
$this->assertNotNull($two);
$two = $repository->find(self::getTestName(self::LB_NAME_FUNC_TEST_2));
$this->assertNull($two);
}