@Test public void testOnCreateViewToBeAttachedToTheContainer() {

	// Arrange:
	final Activity activity = Robolectric.buildActivity(TestActivity.class).create().start().resume().get();
	final BaseFragment fragment = new TestFragmentWithContentViewToBeAttachedToContainer();
	final ViewGroup container = new FrameLayout(activity);
	// Act:
	final View view = fragment.onCreateView(activity.getLayoutInflater(), container, null);
	// Assert:
	assertThat(view, is(nullValue()));
	assertThat(container.getChildCount(), is(1));
}