public void testBuildPropertyProviderRegistrator() throws UnableToCompleteException {
// Sets up environment.
Set<String> allRootTypes = Sets.newHashSet();
Properties properties = new Properties();
BindingProperty userAgentProperty = properties.createBinding("user.agent");
userAgentProperty.setProvider(new PropertyProvider("return navigator.userAgent;"));
userAgentProperty.addTargetLibraryDefinedValue(userAgentProperty.getRootCondition(), "mozilla");
userAgentProperty.addTargetLibraryDefinedValue(userAgentProperty.getRootCondition(), "webkit");
BindingProperty flavorProperty = properties.createBinding("flavor");
flavorProperty.setProvider(new PropertyProvider("return window.properties.flavor;"));
flavorProperty.addTargetLibraryDefinedValue(flavorProperty.getRootCondition(), "Vanilla");
flavorProperty.addTargetLibraryDefinedValue(flavorProperty.getRootCondition(), "Chocolate");
ConfigurationProperty emulateStackProperty =
properties.createConfiguration("emulateStack", false);
emulateStackProperty.setValue("TRUE");