@Test public void onNewIntent() { activity.onNewIntent(intent); doAnswer(invocation -> null).when(activity).handleIntent(); verify(activity).setIntent(intent); verify(activity).handleIntent(); }
@Override protected void onNewIntent(Intent intent) { setIntent(intent); handleIntent(); }
LocationSettingsActivity extends Activity { @Override protected void onNewIntent(Intent intent) { setIntent(intent); handleIntent(); } }
LocationSettingsActivity extends Activity { @Override protected void onNewIntent(Intent intent) { setIntent(intent); handleIntent(); }  }
LocationSettingsActivity extends Activity { @Override protected void onNewIntent(Intent intent) { setIntent(intent); handleIntent(); }   }
LocationSettingsActivity extends Activity { @Override protected void onNewIntent(Intent intent) { setIntent(intent); handleIntent(); }    }