@Test public void testSupportFragmentStarter() 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();
	// Act:
	final IntentStarter starter = IntentStarters.supportFragmentStarter(fragment);
	// Assert:
	assertThat(starter, is(notNullValue()));
	assertThat(starter.getContext(), is((Context) activity));
	fragmentManager.beginTransaction().remove(fragment).commitAllowingStateLoss();
	fragmentManager.executePendingTransactions();
}