@Test public void testSupportFragmentStarterOverridePendingTransition() throws IllegalStateException {

	// Arrange:
	final FragmentActivity activity = Robolectric.buildActivity(TestCompatActivity.class).create().start().resume().get();
	final androidx.fragment.app.FragmentManager fragmentManager = activity.getSupportFragmentManager();
	final androidx.fragment.app.Fragment fragment = new TestCompatFragment();
	fragmentManager.beginTransaction().add(fragment, null).commitAllowingStateLoss();
	fragmentManager.executePendingTransactions();
	final IntentStarter starter = IntentStarters.supportFragmentStarter(fragment);
	// Act:
	starter.overridePendingTransition(
			android.R.anim.fade_in,
			android.R.anim.fade_out
	);
	fragmentManager.beginTransaction().remove(fragment).commitAllowingStateLoss();
	fragmentManager.executePendingTransactions();
}