MainPresenterImpl extends SaveStatePresenter<MainView> implements MainPresenter { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); restoreData(); } @Inject  MainPresenterImpl(@NonNull UserRepository userRepository); @Override void onCreate(Bundle savedInstanceState); @Override void getUser(); @Override void onDestroy();  }
@Test public void testRestoreNullData() throws Exception { presenter.onCreate(null); verifyZeroInteractions(view); }
@Test public void testRestoreEmptyData() throws Exception { String fullName = ""; presenter.fullName = fullName; presenter.onCreate(null); verifyZeroInteractions(view); }