/src/main/java/org/htmlunit/MockWebConnection.java
private final Map<String, RawResponseData> responseMap_ = new ArrayList<>( ) ;
private final Map<String, RawResponseData> responseMap_ = new HashMap<> ( ) ;
import org.apache.commons.logging.LogFactory; import org.htmlunit.util.MimeType; import org.htmlunit.util.NameValuePair; public class MockWebConnection implements WebConnection { private static final Log LOG = LogFactory.getLog(MockWebConnection.class); private final Map<String, IOException> throwableMap_ = new HashMap<>(); <extra_id_0> private RawResponseData defaultResponse_; private WebRequest lastRequest_; private int requestCount_; private final List<URL> requestedUrls_ = Collections.synchronizedList(new ArrayList<>()); public static class RawResponseData { private final List<NameValuePair> headers_;