@@ -0,0 +1,1499 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.apache.jackrabbit.core.query;%0A%0Aimport javax.jcr.RepositoryException;%0Aimport javax.jcr.query.InvalidQueryException;%0A%0A/**%0A * Tests for newer query extensions defined in Oak (verifying they either work%0A * as described, or predictably fail so fallbacks can be used).%0A */%0A%0Apublic class QueryExtensionsTest extends AbstractQueryTest %7B%0A%0A    // see https://issues.apache.org/jira/browse/OAK-9625%0A    public void testFirst() throws RepositoryException %7B%0A        try %7B%0A            executeSQL2Query(%22select %5Bjcr:path%5D from %5Bnt:base%5D where first(%5Bjcr:mixinTypes%5D) %3E= ''%5C%22%22);%0A            fail(%22InvalidQueryException expected%22);%0A        %7D catch (InvalidQueryException expected) %7B%0A        %7D%0A    %7D%0A%7D%0A

add test coverage for behavior when new Oak query features are used