UpdateableAuthzPaths implements AuthzPaths, Updateable<PathsUpdate> { @Override public Set<String> findAuthzObject(String[] pathElements) { return paths.findAuthzObject(pathElements); } UpdateableAuthzPaths(String[] pathPrefixes);   UpdateableAuthzPaths(HMSPaths paths); @Override boolean isUnderPrefix(String[] pathElements); @Override Set<String> findAuthzObject(String[] pathElements); @Override Set<String> findAuthzObjectExactMatches(String[] pathElements); @Override UpdateableAuthzPaths updateFull(PathsUpdate update); @Override void updatePartial(Iterable<PathsUpdate> updates, ReadWriteLock lock); @Override long getLastUpdatedSeqNum(); @Override PathsUpdate createFullImageUpdate(long currSeqNum); @Override AuthzPathsDumper<UpdateableAuthzPaths> getPathsDump(); @Override String getUpdateableTypeName();  }
@Test public void testDefaultDbPath() { HMSPaths hmsPaths = new HMSPaths(new String[] {"/user/hive/warehouse"}); hmsPaths._addAuthzObject("default", Lists.newArrayList("/user/hive/warehouse")); assertTrue(hmsPaths.findAuthzObject(new String[]{"user", "hive", "warehouse"}).contains("default")); }