// Check we're checking
TestSecurityManager sm = new TestSecurityManager(harness);
sm.prepareChecks(new Permission[] {
new RuntimePermission("modifyThread")});
sm.checkAccess(thread);
sm.checkAllChecked();
sm.prepareChecks(new Permission[] {
new RuntimePermission("modifyThreadGroup")});
sm.checkAccess(group);