AdapterWrapper { @WorkerThread void adapterFinished(@NonNull Context context) { Logger.debug("AdapterWrapper - Adapter finished for schedule %s", scheduleId); try { adapter.onFinish(context); } catch (Exception e) { Logger.error(e, "AdapterWrapper - Exception during finish()."); } } 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 testAdapterFinished() { adapterWrapper.adapterFinished(context); verify(mockAdapter).onFinish(context); }