delegate.onRestoreInstanceState(BundleMock.mock());
assertNull(delegate.getPresenterFactory());
assertNull(delegate.getPresenter());
assertNotNull(delegate.onSaveInstanceState());
delegate.setPresenterFactory(null);
<BUG>delegate.onResume(1);
delegate.onPause(false);

delegate.onPause(true);
</BUG>
}

delegate.onRestoreInstanceState(BundleMock.mock());
assertNull(delegate.getPresenterFactory());
assertNull(delegate.getPresenter());
assertNotNull(delegate.onSaveInstanceState());
delegate.setPresenterFactory(null);
delegate.onResume(1);
delegate.onDropView();
delegate.onDestroy(false);
delegate.onDestroy(true);
}
