// Path: test/src/test/java/com/danikula/videocache/support/ProxyCacheTestUtils.java
// public static void resetSystemProxy() {
//     ProxySelector mockedProxySelector = Mockito.mock(ProxySelector.class);
//     when(mockedProxySelector.select(Mockito.<URI>any())).thenReturn(Lists.newArrayList(Proxy.NO_PROXY));
//     ProxySelector.setDefault(mockedProxySelector);
// }


import com.google.common.collect.Lists;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.URI;
import java.util.List;
import static com.danikula.videocache.support.ProxyCacheTestUtils.resetSystemProxy;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
package com.danikula.videocache;





/**
 * Tests {@link IgnoreHostProxySelector}.
 *
 * @author Alexey Danilov (danikula@gmail.com).
 */
public class ProxySelectorTest extends BaseTest {

    @Before
    public void setup() throws Exception {
// Path: test/src/test/java/com/danikula/videocache/support/ProxyCacheTestUtils.java
// public static void resetSystemProxy() {
//     ProxySelector mockedProxySelector = Mockito.mock(ProxySelector.class);
//     when(mockedProxySelector.select(Mockito.<URI>any())).thenReturn(Lists.newArrayList(Proxy.NO_PROXY));
//     ProxySelector.setDefault(mockedProxySelector);
// }


// Path: test/src/test/java/com/danikula/videocache/ProxySelectorTest.java
import com.google.common.collect.Lists;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.URI;
import java.util.List;
import static com.danikula.videocache.support.ProxyCacheTestUtils.resetSystemProxy;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.mockito.Mockito.when;

package com.danikula.videocache;





/**
 * Tests {@link IgnoreHostProxySelector}.
 *
 * @author Alexey Danilov (danikula@gmail.com).
 */
public class ProxySelectorTest extends BaseTest {

    @Before
    public void setup() throws Exception {
        resetSystemProxy();