BaggersListActivity extends TagsListActivity { public static Intent createLaunchIntent(@NonNull Context context, City city) { return TagsListActivity.createLaunchIntent(context, BaggersListActivity.class, city); }  static Intent createLaunchIntent(@NonNull Context context, City city); @Override void onFilterChanged(List<String> selectedTags);  }
@Test public void should_create_launch_intent_with_extra_data() { City city = new City(); city.name = "Shenzhen"; Intent intent = BaggersListActivity.createLaunchIntent(RuntimeEnvironment.application, city); assertThat(intent.getComponent().getClassName()).isEqualTo(BaggersListActivity.class.getName()); assertThat(((City) intent.getParcelableExtra("mCity")).name).isEqualTo("Shenzhen"); }