code: public static void reset() {
      ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
      shadowApplication.setLatestAlertDialog(null);
    }
docs: Resets the tracking of the most recently created {@code AlertDialog}