/**
* Verify the setName() method when a SecurityManager is set.
*/
public void testSetName_CheckAccess() {
sm = System.getSecurityManager();
System.setSecurityManager(new ReversibleSecurityManager());
Thread thread = new Thread();
String newName = "qwerty";
thread.setName(newName);
String gotName = thread.getName();
System.setSecurityManager(sm);