shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java
public ActivityController<T> setup(Bundle savedInstanceState) {
    return create(savedInstanceState)
        .start()
        .restoreInstanceState(savedInstanceState)
        .postCreate(savedInstanceState)
        .resume()
        .visible();
  }
public ActivityController<T> setup(Bundle savedInstanceState) {
    return create(savedInstanceState)
        .start()
        .restoreInstanceState(savedInstanceState)
        .postCreate(savedInstanceState)
        .resume()
        .visible();
  }
Calls the same lifecycle methods on the Activity called by Android when an Activity is restored from previously saved state.

@param savedInstanceState Saved instance state.
@return Activity controller instance.