function it_should_subscribe_a_contact_to_a_list(ContactListConvertor $contactListConvertor, ContactCreator $contactCreator)
 {
     $contactListConvertor->convert(Argument::any())->willReturn(10);
     $this->subscribe('foo', '*****@*****.**', []);
     $contactListConvertor->convert('foo')->shouldBeCalled();
     $contactCreator->create('foo', '*****@*****.**', [])->shouldBeCalled();
     $contactCreator->addToList(10, '*****@*****.**')->shouldBeCalled();
 }
 function it_should_unsubscribe_user_from_contact_list(ContactListConvertor $convertor, Client $client)
 {
     $convertor->convert(Argument::any())->willReturn(10);
     $this->unsubscribe('list_name', '*****@*****.**');
     $client->post(Resources::$ContactslistManagecontact, ['id' => 10, 'body' => ['Action' => 'unsub', 'Email' => '*****@*****.**']])->shouldBeCalled();
 }