@Test public void testOnCreateWhenAnnotationsAreDisabled() {

	// Arrange:
	FragmentAnnotations.setEnabled(false);
	final FragmentActivity activity = Robolectric.buildActivity(TestCompatActivity.class).create().start().resume().get();
	final FragmentManager fragmentManager = activity.getSupportFragmentManager();
	final WebFragment fragment = new WebFragment();
	// Act:
	fragmentManager.beginTransaction().add(fragment, null).commit();
	fragmentManager.executePendingTransactions();
	// Assert:
	assertThat(fragment.getContent(), is(nullValue()));
}