@SuppressWarnings("ConstantConditions")
@Test public void testOnLoadContent() {

	// 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();
	// Act:
	fragment.onLoadContent("http://www.google.com", WebFragment.CONTENT_URL);
	// Assert:
	assertThat(fragment.getWebView().getUrl(), is("http://www.google.com"));
}