shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextImpl.java
@Implementation(minSdk = LOLLIPOP)
  protected void startActivityAsUser(Intent intent, Bundle options, UserHandle user) {
    // TODO: Remove this once {@link com.android.server.wmActivityTaskManagerService} is
    // properly shadowed.
    directlyOn(
        realContextImpl,
        ShadowContextImpl.CLASS_NAME,
        "startActivity",
        ClassParameter.from(Intent.class, intent),
        ClassParameter.from(Bundle.class, options)
    );
  }
@Implementation(minSdk = LOLLIPOP)
  protected void startActivityAsUser(Intent intent, Bundle options, UserHandle user) {
    // TODO: Remove this once {@link com.android.server.wmActivityTaskManagerService} is
    // properly shadowed.
    directlyOn(
        realContextImpl,
        ShadowContextImpl.CLASS_NAME,
        "startActivity",
        ClassParameter.from(Intent.class, intent),
        ClassParameter.from(Bundle.class, options)
    );
  }
Behaves as {@link #startActivity}. The user parameter is ignored.