private static String uriEncode(String raw) {
    return Uri.encode(raw);
  }
Invokes the activity's {@code onActivityResult} as though it received the specified scanned
URI.
javatests/com/google/android/apps/authenticator/AuthenticatorActivityPart2Test.java