@Test
    public void testDefaultBrowserActionsIntent() {
        BrowserActionsIntent browserActionsIntent =
                new BrowserActionsIntent.Builder(mContext, mUri).build();
        Intent intent = browserActionsIntent.getIntent();
        assertNotNull(intent);

        assertEquals(BrowserActionsIntent.ACTION_BROWSER_ACTIONS_OPEN, intent.getAction());
        assertEquals(mUri, intent.getData());
        assertTrue(intent.hasExtra(BrowserActionsIntent.EXTRA_TYPE));
        assertEquals(BrowserActionsIntent.URL_TYPE_NONE,
                intent.getIntExtra(BrowserActionsIntent.EXTRA_TYPE, 0));
        assertTrue(intent.hasExtra(BrowserActionsIntent.EXTRA_APP_ID));
        assertEquals(mContext.getPackageName(),
                BrowserActionsIntent.getUntrustedCreatorPackageName(intent));
        assertFalse(intent.hasExtra(BrowserActionsIntent.EXTRA_SELECTED_ACTION_PENDING_INTENT));
    }
Test whether default {@link BrowserActionsIntent} is populated correctly.
customtabs/tests/src/android/support/customtabs/browseractions/BrowserActionsIntentTest.java