Index: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/AuthorizationContextTest.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/AuthorizationContextTest.java	(revision )
+++ oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/AuthorizationContextTest.java	(revision )
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.oak.security.authorization;
+
+import java.util.List;
+
+import com.google.common.collect.Lists;
+import org.apache.jackrabbit.oak.AbstractSecurityTest;
+import org.apache.jackrabbit.oak.api.Tree;
+import org.junit.Test;
+
+import static org.junit.Assert.assertFalse;
+
+public class AuthorizationContextTest extends AbstractSecurityTest {
+
+    /**
+     * @see <a href="https://issues.apache.org/jira/browse/OAK-2740">OAK-2740</a>
+     */
+    @Test
+    public void testItemDefinitionsDefinedContextRoot() throws Exception {
+        List<String> paths = Lists.newArrayList(
+                "/jcr:system/jcr:nodeTypes/rep:AccessControllable/rep:namedChildNodeDefinitions/rep:policy",
+                "/jcr:system/jcr:nodeTypes/rep:RepoAccessControllable/rep:namedChildNodeDefinitions/rep:repoPolicy");
+
+        for (String defPath : paths) {
+            Tree tree = root.getTree(defPath);
+            assertFalse(AuthorizationContext.getInstance().definesContextRoot(tree));
+        }
+    }
+}
\ No newline at end of file
