### Question:
ButtonMerchant { @Deprecated public static void trackOrder(@NonNull Context context, @NonNull Order order, @Nullable UserActivityListener userActivityListener) { if (userActivityListener != null) { Throwable error = new Throwable("trackOrder(~) is no longer supported." + " You can safely remove your usage of this method."); userActivityListener.onResult(error); } } private  ButtonMerchant(); static void configure(@NonNull Context context, @NonNull String applicationId); static void trackIncomingIntent(@NonNull Context context, @NonNull Intent intent); @Deprecated static void trackOrder(@NonNull Context context, @NonNull Order order,
            @Nullable UserActivityListener userActivityListener); static void reportOrder(@NonNull Context context, @NonNull Order order,
            @Nullable OrderListener orderListener); @Nullable static String getAttributionToken(@NonNull Context context); static void addAttributionTokenListener(@NonNull Context context,
            @NonNull AttributionTokenListener listener); static void removeAttributionTokenListener(@NonNull Context context,
            @NonNull AttributionTokenListener listener); static void clearAllData(@NonNull Context context); static void handlePostInstallIntent(@NonNull Context context, @NonNull
            PostInstallIntentListener listener); static Features features(); static ButtonUserActivity activity();  }### Answer:
@Test public void trackOrder_verifyDeprecation() { UserActivityListener listener = mock(UserActivityListener.class); ButtonMerchant.trackOrder(context, mock(Order.class), listener); verify(listener).onResult(any(Throwable.class)); verifyZeroInteractions(buttonInternal); }