private static Map<String, Object> jsonObjectToMap(JSONObject jsonObject) throws JSONException {
    Map<String, Object> result = Maps.newHashMap();
    JSONArray names = jsonObject.names();
    for (int i = 0, len = ((names != null) ? names.length() : 0); i < len; i++) {
      String name = names.getString(i);
      Object value = jsonObject.get(name);
      result.put(name, jsonValueToJavaValue(value));
    }
    return result;
  }
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