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

	// Arrange:
	final Activity mockActivity = mock(TestActivity.class);
	when(mockActivity.getPackageName()).thenReturn(context.getPackageName());
	final BaseNavigationalTransition navTransition = new TestTransition(TestActivity.class);
	// Act:
	final Intent intent = navTransition.createIntent(mockActivity);
	// Assert:
	assertThat(intent, is(notNullValue()));
	final ComponentName component = intent.getComponent();
	assertThat(component, is(notNullValue()));
	assertThat(component.getClassName(), is(TestActivity.class.getName()));
	assertThat(component.getPackageName(), is(context.getPackageName()));
	assertThat(intent.getExtras(), is(nullValue()));
}