def test_undelete_volume(self):
        """Test Undelete Volume from a UDF."""
        udf = self.udf
        udf_dao = DAOUserVolume(udf, self.user)
        vgw = ReadWriteVolumeGateway(self.user, udf=udf_dao)
        d = vgw.make_file(udf.root_node.id, 'thefile.txt')
        vgw.delete_node(d.id)
        vgw.undelete_volume('recovered')
        rgw = ReadWriteVolumeGateway(self.user)
        node = rgw.get_node(d.id)
        self.assertEqual(d.volume_id, udf.id)
        self.assertEqual(node.volume_id, udf.id)
        self.assertEqual(node.full_path, '/recovered/thefile.txt')