@Test public void testOnSaveInstanceState() {

	// Arrange:
	final FragmentActivity activity = Robolectric.buildActivity(TestCompatActivity.class).create().start().resume().get();
	final FragmentManager fragmentManager = activity.getSupportFragmentManager();
	final WebFragment fragment = new WebFragment();
	fragmentManager.beginTransaction().add(fragment, null).commit();
	fragmentManager.executePendingTransactions();
	final Bundle state = new Bundle();
	// Act:
	fragment.onSaveInstanceState(state);
	// Assert:
	assertThat(state.containsKey(WebFragment.BUNDLE_OPTIONS), is(true));
	assertThat(state.containsKey(WebFragment.BUNDLE_CONTENT), is(true));
	assertThat(state.containsKey(WebFragment.BUNDLE_PRIVATE_FLAGS), is(true));
}