MgrProviderImpl implements MgrProvider { @NotNull @Override public RestrictionProvider getRestrictionProvider() { if (restrictionProvider == null) { restrictionProvider = getSecurityProvider().getConfiguration(AuthorizationConfiguration.class).getRestrictionProvider(); } return restrictionProvider; } MgrProviderImpl(@NotNull PrincipalBasedAuthorizationConfiguration config);   MgrProviderImpl(@NotNull PrincipalBasedAuthorizationConfiguration config, @NotNull Root root, @NotNull NamePathMapper namePathMapper); @NotNull @Override SecurityProvider getSecurityProvider(); @Override void reset(@NotNull Root root, NamePathMapper namePathMapper); @NotNull @Override Root getRoot(); @NotNull @Override NamePathMapper getNamePathMapper(); @NotNull @Override Context getContext(); @NotNull @Override PrivilegeManager getPrivilegeManager(); @NotNull @Override PrivilegeBitsProvider getPrivilegeBitsProvider(); @NotNull @Override PrincipalManager getPrincipalManager(); @NotNull @Override RestrictionProvider getRestrictionProvider(); @NotNull @Override TreeProvider getTreeProvider(); @NotNull @Override RootProvider getRootProvider();  }
@Test public void testGetRestrictionProvider() { RestrictionProvider rp = mgrProvider.getRestrictionProvider(); assertSame(rp, mgrProvider.getRestrictionProvider()); mgrProvider.reset(root, getNamePathMapper()); assertSame(rp, mgrProvider.getRestrictionProvider()); }