JackrabbitSessionFacade extends SessionFacade<JackrabbitSession> implements JackrabbitSession { @Override public PrincipalManager getPrincipalManager() throws RepositoryException { return delegate.getPrincipalManager(); } @SuppressWarnings("WeakerAccess")  JackrabbitSessionFacade(final @NotNull JackrabbitSession delegate, final boolean notProtected); @Override boolean hasPermission(final @NotNull String absPath, final @NotNull String... actions); @Override PrincipalManager getPrincipalManager(); @Override UserManager getUserManager(); @Override Item getItemOrNull(final String absPath); @Override Property getPropertyOrNull(final String absPath); @Override Node getNodeOrNull(final String absPath);  }
@Test public void testGetPrincipalManager() throws Exception { inspectForTest(session -> { final JackrabbitSessionFacade facade = new JackrabbitSessionFacade(session, true); assertNotNull("getPrincipalManager should not be null", facade.getPrincipalManager()); }); }