### Question:
FirebaseInAppMessagingDisplay extends FirebaseInAppMessagingDisplayImpl { public void setFiamListener(FiamListener listener) { this.fiamListener = listener; } @Inject  FirebaseInAppMessagingDisplay(
      FirebaseInAppMessaging headlessInAppMessaging,
      Map<String, Provider<InAppMessageLayoutConfig>> layoutConfigs,
      FiamImageLoader imageLoader,
      RenewableTimer impressionTimer,
      RenewableTimer autoDismissTimer,
      FiamWindowManager windowManager,
      Application application,
      BindingWrapperFactory bindingWrapperFactory,
      FiamAnimator animator); @NonNull static FirebaseInAppMessagingDisplay getInstance(); void testMessage(
      Activity activity,
      InAppMessage inAppMessage,
      FirebaseInAppMessagingDisplayCallbacks callbacks); void setFiamListener(FiamListener listener); void clearFiamListener(); @Override void onActivityResumed(Activity activity); @Override void onActivityPaused(Activity activity);  }### Answer:
@Test public void firebaseInAppMessagingUIListener_whenFiamRendered_receivesOnFiamTrigger() { resumeActivity(activity); fiamUI.setFiamListener(fiamUIListener); listener.displayMessage(IMAGE_MESSAGE_MODEL, callbacks); verify(fiamUIListener).onFiamTrigger(); }
@Test public void fiamUIListener_whenFiamClicked_receivesOnFiamClick() { resumeActivity(activity); fiamUI.setFiamListener(fiamUIListener); listener.displayMessage(IMAGE_MESSAGE_MODEL, callbacks); verify(imageBindingWrapper) .inflate(onClickListenerArgCaptor.capture(), any(OnClickListener.class)); onClickListenerArgCaptor.getValue().get(IMAGE_MESSAGE_MODEL.getAction()).onClick(null); verify(fiamUIListener).onFiamTrigger(); }