private void assertDialogInflatedCorrectly(View contentView) {
        assertNotNull(contentView);
        TextView urlTextView =
                (TextView) contentView.findViewById(R.id.browser_actions_header_text);
        assertNotNull(urlTextView);
        assertEquals(TEST_URL, urlTextView.getText());
        ListView menuListView =
                (ListView) contentView.findViewById(R.id.browser_actions_menu_items);
        assertNotNull(menuListView);
        assertEquals(mMenuItemTitles.size(), menuListView.getCount());
        for (int i = 0; i < mMenuItemTitles.size(); i++) {
            TextView menuItemTitleView = (TextView) menuListView.getChildAt(i).findViewById(
                    R.id.browser_actions_menu_item_text);
            assertEquals(mMenuItemTitles.get(i), menuItemTitleView.getText());
        }
    }
Test whether {@link BrowserActionsFallbackMenuUi} is inflated correctly.
customtabs/tests/src/android/support/customtabs/browseractions/BrowserActionsFallbackMenuUiTest.java