@SuppressWarnings("ConstantConditions")
@Config(sdk = Build.VERSION_CODES.LOLLIPOP)
@Test public void testMakeSceneTransitionAnimationAtLollipopApiLevel() {

	// Arrange:
	final Activity mockActivity = mock(TestActivity.class);
	final Window mockWindow = mock(Window.class);
	when(mockWindow.getDecorView()).thenReturn(null);
	when(mockActivity.getWindow()).thenReturn(mockWindow);
	final TestTransition transition = new TestTransition();
	// Act:
	final ActivityOptions options = transition.makeSceneTransitionAnimation(mockActivity);
	// Assert:
	assertThat(options, is(notNullValue()));
	assertThat(options.toBundle(), is(nullValue()));
}