shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java
public boolean activateResetToken(ComponentName admin) {
    if (!passwordResetTokens.containsKey(admin)) {
      throw new IllegalArgumentException("No token set for comopnent: " + admin);
    }
    return componentsWithActivatedTokens.add(admin);
  }
public boolean activateResetToken(ComponentName admin) {
    if (!passwordResetTokens.containsKey(admin)) {
      throw new IllegalArgumentException("No token set for comopnent: " + admin);
    }
    return componentsWithActivatedTokens.add(admin);
  }
public boolean activateResetToken ( ComponentName admin ) { if ( ! passwordResetTokens . containsKey ( admin ) ) { throw new IllegalArgumentException ( "No token set for comopnent: " + admin ) ; } return componentsWithActivatedTokens . add ( admin ) ; }
Activates reset token for given admin.

@param admin Which {@link DeviceAdminReceiver} this request is associated with.
@return if the activation state changed.
@throws IllegalArgumentException if there is no token set for this admin.
Activates reset token for given admin .