ActivityLightCycleDispatcher implements LightCycleDispatcher<ActivityLightCycle<HostType>>, ActivityLightCycle<HostType> { @Override public void onNewIntent(HostType host, Intent intent) { for (ActivityLightCycle<HostType> component : activityLightCycles) { component.onNewIntent(host, intent); } } ActivityLightCycleDispatcher(); @Override void bind(ActivityLightCycle<HostType> lightCycle); @Override void onCreate(HostType host, @Nullable Bundle bundle); @Override void onNewIntent(HostType host, Intent intent); @Override void onStart(HostType host); @Override void onResume(HostType host); @Override boolean onOptionsItemSelected(HostType host, MenuItem item); @Override void onPause(HostType host); @Override void onStop(HostType host); @Override void onSaveInstanceState(HostType host, Bundle bundle); @Override void onRestoreInstanceState(HostType host, Bundle bundle); @Override void onDestroy(HostType host);  }
@Test public void dispatchOnNewIntent() { final Intent intent = mock(Intent.class); dispatcher.onNewIntent(activity, intent); verify(lightCycleComponent1).onNewIntent(activity, intent); verify(lightCycleComponent2).onNewIntent(activity, intent); }