function it_should_throw_exception_if_list_not_created(ContactListRepository $repository, ObjectManager $objectManager, Client $client, Response $response)
{
$repository->findOneByName(Argument::any())->willReturn(null);
$client->post(Resources::$Contactslist, ['body' => ['Name' => 'ListName']])->willReturn($response);
$response->success()->willReturn(false);
$this->shouldThrow(ContactListNotCreated::CLASS)->duringConvert('list_name');
$objectManager->persist(Argument::any())->shouldNotBeCalled();
$objectManager->flush(Argument::any())->shouldNotBeCalled();
}