@TargetApi(11)
  // The return value is of type android.view.ActionMode. However, since the ActionMode class is
  // only available in API Level 11+, we have to declare the return type as Object in order to
  // for this test class to load fine on Gingerbread and below.
  private static Object openListViewContextualActionBar(
      AuthenticatorActivity activity, ListView listView, int position) {
    View listEntry = listView.getChildAt(position);
    onView(is(listEntry)).perform(longClick());
    ActionMode actionMode = activity.actionMode;
    if (actionMode == null) {
      throw new RuntimeException(
          "Failed to open list entry contextual action bar: got ActionMode == null");
    }
    return actionMode;
  }
This function return the original pin code from the styled pin code, which may has a space in
the middle of the string

@param pin The styled pin code
@return The original pin code with no spaces
javatests/com/google/android/apps/authenticator/AuthenticatorActivityTest.java