@@ -0,0 +1,1942 @@
+/*%0A * eXist-db Open Source Native XML Database%0A * Copyright (C) 2001 The eXist-db Authors%0A *%0A * info@exist-db.org%0A * http://www.exist-db.org%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA%0A */%0Apackage org.exist.xquery.functions.fn;%0A%0Aimport com.googlecode.junittoolbox.ParallelRunner;%0Aimport org.exist.test.ExistXmldbEmbeddedServer;%0Aimport org.exist.xquery.XPathException;%0Aimport org.junit.ClassRule;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.xmldb.api.base.ResourceSet;%0Aimport org.xmldb.api.base.XMLDBException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author Dannes Wessels%0A */%0A@RunWith(ParallelRunner.class)%0Apublic class FunDocumentUriTest %7B%0A%0A    @ClassRule%0A    public static final ExistXmldbEmbeddedServer existEmbeddedServer = new ExistXmldbEmbeddedServer(true, true, true);%0A%0A    @Test%0A    public void testFnFunDocumentUri() %7B%0A%0A        try %7B%0A            final ResourceSet resourceSet = existEmbeddedServer.executeQuery(%0A                    %22declare context item := 'a'; document-uri()%22);%0A%0A        %7D catch (XMLDBException ex) %7B%0A            XPathException cause = (XPathException) ex.getCause();%0A            assertEquals(%22XPTY0004%22, cause.getErrorCode().getErrorQName().getLocalPart());%0A        %7D%0A    %7D%0A%7D%0A

Add test that can not be tested in XQsuite.