// Path: cubano-config/src/main/java/org/concordion/cubano/config/PropertyLoader.java
// public interface PropertyLoader {
// 
//     /**
//      * Get the property for the current environment, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @return Property value if found, defaultValue if not found
//      */
//     String getProperty(String key);
// 
//     /**
//      * Get the property for the current environment, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @param defaultValue value to use if property is not found
//      * @return Property value if found, defaultValue if not found
//      */
//     String getProperty(String key, String defaultValue);
// 
//     /**
//      * Get the property for the current environment as a boolean value, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @param defaultValue value to use if property is not found
//      * @return Property value if found, defaultValue if not found
//      */
//     boolean getPropertyAsBoolean(String key, String defaultValue);
// 
//     /**
//      * Get the property for the current environment as a numeric value, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @param defaultValue value to use if property is not found
//      * @return Property value if found, defaultValue if not found
//      */
//     int getPropertyAsInteger(String key, String defaultValue);
// 
//     /**
//      * Returns a map of key value pairs of properties starting with a prefix.
//      *
//      * @param keyPrefix Search string
//      * @return Map
//      */
//     Map<String, String> getPropertiesStartingWith(String keyPrefix);
// 
//     /**
//      * Returns a map of key value pairs of properties starting with a prefix.
//      *
//      * @param keyPrefix Search string
//      * @param trimPrefix Remove prefix from key in returned set
//      * @return Map
//      */
//     Map<String, String> getPropertiesStartingWith(String keyPrefix, boolean trimPrefix);
// }


import org.concordion.cubano.config.PropertyLoader;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Properties;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.mock;
package org.concordion.cubano.driver.web.config;



public class WebDriverConfigTest {
    @Rule
    public final RestoreSystemProperties restoreSystemProperties = new RestoreSystemProperties();
    
    private Enumeration<String> empty = Collections.enumeration(Collections.<String>emptyList());

    @Test
    public void localBrowserSettings() {
        Properties properties = givenDefaultProperties();
        given(properties.getProperty("webdriver.browser.dimension")).willReturn("1280x1024");
        given(properties.getProperty("webdriver.browser.position")).willReturn("10x10");
        given(properties.getProperty("webdriver.browserSize")).willReturn("1280x1024");
        given(properties.getProperty("firefox.exe")).willReturn("%USERPROFILE%/bin/firefox");
        given(properties.getProperty("firefox.profile")).willReturn("default");
        
        WebDriverConfig config = new WebDriverConfig(properties);
// Path: cubano-config/src/main/java/org/concordion/cubano/config/PropertyLoader.java
// public interface PropertyLoader {
// 
//     /**
//      * Get the property for the current environment, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @return Property value if found, defaultValue if not found
//      */
//     String getProperty(String key);
// 
//     /**
//      * Get the property for the current environment, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @param defaultValue value to use if property is not found
//      * @return Property value if found, defaultValue if not found
//      */
//     String getProperty(String key, String defaultValue);
// 
//     /**
//      * Get the property for the current environment as a boolean value, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @param defaultValue value to use if property is not found
//      * @return Property value if found, defaultValue if not found
//      */
//     boolean getPropertyAsBoolean(String key, String defaultValue);
// 
//     /**
//      * Get the property for the current environment as a numeric value, if that is not found it will look for "{@literal <key>}".
//      *
//      * @param key Id of the property to look up
//      * @param defaultValue value to use if property is not found
//      * @return Property value if found, defaultValue if not found
//      */
//     int getPropertyAsInteger(String key, String defaultValue);
// 
//     /**
//      * Returns a map of key value pairs of properties starting with a prefix.
//      *
//      * @param keyPrefix Search string
//      * @return Map
//      */
//     Map<String, String> getPropertiesStartingWith(String keyPrefix);
// 
//     /**
//      * Returns a map of key value pairs of properties starting with a prefix.
//      *
//      * @param keyPrefix Search string
//      * @param trimPrefix Remove prefix from key in returned set
//      * @return Map
//      */
//     Map<String, String> getPropertiesStartingWith(String keyPrefix, boolean trimPrefix);
// }


// Path: cubano-webdriver/src/test/java/org/concordion/cubano/driver/web/config/WebDriverConfigTest.java
import org.concordion.cubano.config.PropertyLoader;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Properties;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.mock;

package org.concordion.cubano.driver.web.config;



public class WebDriverConfigTest {
    @Rule
    public final RestoreSystemProperties restoreSystemProperties = new RestoreSystemProperties();
    
    private Enumeration<String> empty = Collections.enumeration(Collections.<String>emptyList());

    @Test
    public void localBrowserSettings() {
        Properties properties = givenDefaultProperties();
        given(properties.getProperty("webdriver.browser.dimension")).willReturn("1280x1024");
        given(properties.getProperty("webdriver.browser.position")).willReturn("10x10");
        given(properties.getProperty("webdriver.browserSize")).willReturn("1280x1024");
        given(properties.getProperty("firefox.exe")).willReturn("%USERPROFILE%/bin/firefox");
        given(properties.getProperty("firefox.profile")).willReturn("default");
        
        WebDriverConfig config = new WebDriverConfig(properties);
        PropertyLoader propertyLoader = config.getPropertyLoader();