private static Object jsonValueToJavaValue(Object value) throws JSONException {
    if ((value == null) || (value == JSONObject.NULL)) {
      return null;
    } else if (value instanceof JSONObject) {
      return jsonObjectToMap((JSONObject) value);
    } else if (value instanceof JSONArray) {
      return jsonArrayToList((JSONArray) value);
    } else {
      return value;
    }
  }
Finds an {@link Intent} whose component name points to the specified class.

@return first matching {@code Intent} or {@code null} if no match found.
javatests/com/google/android/apps/authenticator/testing/TestUtilities.java