private void assertBrowserProperties(UserAgent userAgent, boolean isTablet,
boolean isPhone, boolean isAndroid, String formFactor,
boolean isIPad, boolean isIPhone, boolean isIOS, boolean isWindowsPhone) throws Exception {
AuraContext context = Aura.getContextService().getCurrentContext();
String userAgentString = userAgent == null ? null : userAgent.getUserAgentString();
context.setClient(new Client(userAgentString));
BrowserValueProvider bvp = new BrowserValueProvider();
assertBrowserProperty(bvp, BrowserProperty.isTablet, isTablet, userAgentString);
assertBrowserProperty(bvp, BrowserProperty.isPhone, isPhone, userAgentString);
assertBrowserProperty(bvp, BrowserProperty.isAndroid, isAndroid, userAgentString);
assertBrowserProperty(bvp, BrowserProperty.formFactor, formFactor, userAgentString);