@Test public void testIsViewCreated() {

	// Arrange:
	final FragmentActivity activity = Robolectric.buildActivity(TestCompatActivity.class).create().start().resume().get();
	final FragmentManager fragmentManager = activity.getSupportFragmentManager();
	final View contentView = new FrameLayout(activity);
	contentView.setId(android.R.id.list);
	activity.setContentView(contentView);
	final BaseFragment fragment = new TestFragment();
	fragmentManager.beginTransaction().add(android.R.id.list, fragment, null).commit();
	fragmentManager.executePendingTransactions();
	// Act + Assert:
	assertThat(fragment.isViewCreated(), is(true));
}