@Test
    public void testBrowserActionsFallbackDialogOpened() throws InterruptedException {
        final CountDownLatch signal = new CountDownLatch(1);
        final BrowserActionsIntent.BrowserActionsFallDialogListener listener =
                new BrowserActionsIntent.BrowserActionsFallDialogListener() {
                    @Override
                    public void onDialogShown() {
                        signal.countDown();
                    }
                };
        BrowserActionsIntent.setDialogShownListenter(listener);
        mActivityTestRule.getActivity().runOnUiThread(new Runnable() {
            @Override
            public void run() {
                BrowserActionsIntent browserActionsIntent =
                        new BrowserActionsIntent.Builder(mContext, Uri.parse(TEST_URL)).build();
                Intent intent = browserActionsIntent.getIntent();
                BrowserActionsIntent.launchIntent(mContext, intent, null);
            }
        });
        signal.await(5L, TimeUnit.SECONDS);
    }
Test whether {@link BrowserActionsFallbackMenuDialog} is opened if not provider is available.
customtabs/tests/src/android/support/customtabs/browseractions/BrowserActionsFallbackMenuUiTest.java