// Path: arquillian-chameleon-runner/runner/src/test/java/org/arquillian/container/chameleon/runner/fixtures/GenericTest.java
// @ChameleonTarget(container = "tomcat", version = "7.0.0", customProperties = {
//     @Property(name="a", value="b")
// })
// public class GenericTest {
// }


import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Path;
import javax.xml.transform.TransformerException;
import org.arquillian.container.chameleon.runner.fixtures.GenericTest;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
package org.arquillian.container.chameleon.runner;



@RunWith(MockitoJUnitRunner.class)
public class ArquillianChameleonConfiguratorTest {

    @Mock
    ClassLoader classLoader;

    @Mock
    InputStream file;

    @Rule
    public final RestoreSystemProperties restoreSystemProperties
        = new RestoreSystemProperties();
    
    @Test
    public void should_configure_arquillian_using_properties_if_it_is_not_configured_as_such()
        throws IOException, TransformerException {
        
        // given
        final ArquillianChameleonConfigurator arquillianChameleonConfigurator = new ArquillianChameleonConfigurator();
        when(classLoader.getResourceAsStream(ArquillianChameleonConfigurationGenerator.ARQUILLIAN_PROPERTIES))
            .thenReturn(null);
        
        // when
// Path: arquillian-chameleon-runner/runner/src/test/java/org/arquillian/container/chameleon/runner/fixtures/GenericTest.java
// @ChameleonTarget(container = "tomcat", version = "7.0.0", customProperties = {
//     @Property(name="a", value="b")
// })
// public class GenericTest {
// }


// Path: arquillian-chameleon-runner/runner/src/test/java/org/arquillian/container/chameleon/runner/ArquillianChameleonConfiguratorTest.java
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Path;
import javax.xml.transform.TransformerException;
import org.arquillian.container.chameleon.runner.fixtures.GenericTest;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

package org.arquillian.container.chameleon.runner;



@RunWith(MockitoJUnitRunner.class)
public class ArquillianChameleonConfiguratorTest {

    @Mock
    ClassLoader classLoader;

    @Mock
    InputStream file;

    @Rule
    public final RestoreSystemProperties restoreSystemProperties
        = new RestoreSystemProperties();
    
    @Test
    public void should_configure_arquillian_using_properties_if_it_is_not_configured_as_such()
        throws IOException, TransformerException {
        
        // given
        final ArquillianChameleonConfigurator arquillianChameleonConfigurator = new ArquillianChameleonConfigurator();
        when(classLoader.getResourceAsStream(ArquillianChameleonConfigurationGenerator.ARQUILLIAN_PROPERTIES))
            .thenReturn(null);
        
        // when
        final Path setup = arquillianChameleonConfigurator.setup(GenericTest.class, classLoader);