private static List<Object> jsonArrayToList(JSONArray jsonArray) throws JSONException {
    List<Object> result = Lists.newArrayList();
    for (int i = 0, len = (jsonArray != null) ? jsonArray.length() : 0; i < len; i++) {
      result.add(jsonValueToJavaValue(jsonArray.get(i)));
    }
    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