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

	// Arrange:
	final AppCompatActivity mockActivity = mock(TestCompatActivity.class);
	when(mockActivity.getSupportActionBar()).thenReturn(null);
	// Act + Assert:
	assertThat(ActionBarDelegate.create(mockActivity), is(nullValue()));
}