headers.put("header", "headerValue");
Map<String, List<String>> headerMap = new HashMap<String, List<String>>();
headerMap.put("header", Collections.singletonList("headerValue"));
expect(streamProvider.processURL("spec", "requestMethod", "params", headerMap)).andReturn(urlConnection);
expect(urlConnection.getInputStream()).andReturn(inputStream);
replay(streamProvider, urlConnection, inputStream);
ViewContextImpl.ViewURLStreamProvider viewURLStreamProvider =