AdapterWrapper { @MainThread void displayFinished() { Logger.debug("AdapterWrapper - Display finished for schedule %s", scheduleId); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { try { coordinator.onDisplayFinished(message); } catch (Exception e) { Logger.error(e, "AdapterWrapper - Exception during onDisplayFinished()."); } } }); } AdapterWrapper(@NonNull String scheduleId,
                   @NonNull InAppMessage message,
                   @NonNull InAppMessageAdapter adapter,
                   @NonNull DisplayCoordinator coordinator);  final String scheduleId; final InAppMessage message; final InAppMessageAdapter adapter; final DisplayCoordinator coordinator; public boolean displayed; }
@Test public void testDisplayFinished() { adapterWrapper.displayFinished(); verify(mockCoordinator).onDisplayFinished(adapterWrapper.message); }