### Question:
BrowserConfiguration { public AppAuthConfiguration getAppAuthConfig() { return appAuthConfig; } private  BrowserConfiguration(final BrowserConfigurationBuilder builder); AppAuthConfiguration getAppAuthConfig();  }### Answer:
@Test public void testChromeCustomTabBlackListSuccess() { AuthBrowser chromeCustomTab = AuthBrowsers.CHROME_CUSTOM_TAB; BrowserConfiguration browserConfiguration = new BrowserConfiguration.BrowserConfigurationBuilder().blackList() .browser(chromeCustomTab).build(); AppAuthConfiguration appAuthConfiguration = browserConfiguration.getAppAuthConfig(); BrowserBlacklist browserMatcher = (BrowserBlacklist) browserConfiguration.getAppAuthConfig() .getBrowserMatcher(); Assert.assertNotNull(appAuthConfiguration); Assert.assertNotNull(browserMatcher); }
@Test(expected = ClassCastException.class) public void testChromeCustomTabBlackListFail() { AuthBrowser chromeCustomTab = AuthBrowsers.CHROME_CUSTOM_TAB; BrowserConfiguration browserConfiguration = new BrowserConfiguration.BrowserConfigurationBuilder().blackList() .browser(chromeCustomTab).build(); BrowserWhitelist browserMatcher = (BrowserWhitelist) browserConfiguration.getAppAuthConfig() .getBrowserMatcher(); }