@Test
public void testDelegateToActivityFinishingCheck() {

    when(activity.isChangingConfigurations()).thenReturn(false).thenReturn(true);
    assertTrue(activityDelegate.isFinished());
    assertFalse(activityDelegate.isFinished());
}