/**
  * Test that addresses can be taken back out of the list by passing the Swift_Address instance back in.
  */
 public function testAddressesCanBeRemovedUsingObject()
 {
     $list = new Swift_RecipientList();
     $foo = new Swift_Address("*****@*****.**");
     $list->addTo($foo);
     $list->addTo("*****@*****.**", "Joe");
     $list->addTo("*****@*****.**");
     $list->removeTo($foo);
     $this->assertEqual(array("*****@*****.**", "*****@*****.**"), array_keys($list->getTo()));
 }