### Question:
ButtonMerchant { public static void configure(@NonNull Context context, @NonNull String applicationId) { buttonInternal.configure(getButtonRepository(context), applicationId); ((ButtonUserActivityImpl) activity()).flushQueue(getButtonRepository(context)); } 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 configure_verifyButtonInternal() { ButtonMerchant.configure(context, "valid_application_id"); verify(buttonInternal).configure(any(ButtonRepository.class), eq("valid_application_id")); }
@Test public void configure_verifyFlushActivityQueue() { ButtonMerchant.activity = spy(ButtonMerchant.activity); ButtonMerchant.configure(context, "invalid_application_id"); verify((ButtonUserActivityImpl) ButtonMerchant.activity) .flushQueue(any(ButtonRepository.class)); }