static PendingIntent createCustomItemAction(String url) {
        Context context = InstrumentationRegistry.getTargetContext();
        Intent customIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
        return PendingIntent.getActivity(context, 0, customIntent, 0);
    }
Test whether custom items are set correctly.
customtabs/tests/src/android/support/customtabs/browseractions/BrowserActionsIntentTest.java