private void installBrowser(String packageName) {
        Intent intent = new Intent()
                .setData(Uri.parse("http://"))
                .setAction(Intent.ACTION_VIEW)
                .addCategory(Intent.CATEGORY_BROWSABLE);

        ResolveInfo resolveInfo = new ResolveInfo();
        resolveInfo.activityInfo = new ActivityInfo();
        resolveInfo.activityInfo.packageName = packageName;

        mShadowPackageManager.addResolveInfoForIntent(intent, resolveInfo);
    }
Tests that if the user has a non-Chrome TWA provider as their default, we choose that.
customtabs/junit/src/android/support/customtabs/trusted/TwaProviderPickerTest.java