CugPolicyImpl implements CugPolicy { @Override public String getPath() { return namePathMapper.getJcrPath(oakPath); } CugPolicyImpl(@NotNull String oakPath, @NotNull NamePathMapper namePathMapper,
                  @NotNull PrincipalManager principalManager, int importBehavior, @NotNull CugExclude cugExclude);   CugPolicyImpl(@NotNull String oakPath, @NotNull NamePathMapper namePathMapper,
                  @NotNull PrincipalManager principalManager, int importBehavior,
                  @NotNull CugExclude cugExclude, @NotNull Iterable<Principal> principals, boolean immutable); @NotNull @Override Set<Principal> getPrincipals(); @Override boolean addPrincipals(@NotNull Principal... principals); @Override boolean removePrincipals(@NotNull Principal... principals); @Override String getPath();  }
@Test public void testGetPath() { CugPolicy empty = createEmptyCugPolicy(); assertEquals(path, empty.getPath()); }
@Test public void testGetPathWithRemapping() { String oakPath = "/oak:testPath"; NamePathMapper mapper = new NamePathMapperImpl(new LocalNameMapper(root, ImmutableMap.of("quercus", "http: CugPolicy empty = new CugPolicyImpl(oakPath, mapper, principalManager, ImportBehavior.ABORT, exclude); assertEquals("/quercus:testPath", empty.getPath()); }