fun testSetSystemScope() { val systemScope: IdentityScope = IdentityScope.getSystemScope() try { `is` = IdentityScopeStub("Aleksei Semenov") IdentityScopeStub.mySetSystemScope(`is`) assertSame(`is`, IdentityScope.getSystemScope()) } finally { IdentityScopeStub.mySetSystemScope(systemScope) } }
check that if permission given - set/get works if permission is denied than SecurityException is thrown