'``HandoffVolume.run()`` hands off the named volume to the given
destination nodex.'

def test_handoff(self):

    volume_service = create_volume_service(self)
    hostname = 'dest.example.com'
    result = []
    def _handoff(volume, destination):
        result.extend([volume, destination])
    self.patch(volume_service, 'handoff', _handoff)
    deployer = P2PManifestationDeployer(u'example.com', volume_service)
    handoff = HandoffDataset(dataset=APPLICATION_WITH_VOLUME.volume.dataset, hostname=hostname)
    handoff.run(deployer, state_persister=InMemoryStatePersister())
    self.assertEqual(result, [volume_service.get(_to_volume_name(DATASET.dataset_id)), RemoteVolumeManager(standard_node(hostname))])
