### Question:
ConfigurableDispatch extends DefaultDispatch { @Configure protected void setRequestExcludeHeaders(@Default(" ") String headers) { if(!" ".equals(headers)) { this.requestExcludeHeaders = convertCommaDelimitedHeadersToSet(headers); } }  @Override Set<String> getOutboundResponseExcludeHeaders(); @Override Set<String> getOutboundResponseExcludedSetCookieHeaderDirectives(); @Override Set<String> getOutboundRequestExcludeHeaders(); boolean getRemoveUrlEncoding(); @Override URI getDispatchUrl(HttpServletRequest request);  }### Answer:
@Test( timeout = TestUtils.SHORT_TIMEOUT ) public void testRequestExcludeHeadersConfig() { ConfigurableDispatch dispatch = new ConfigurableDispatch(); dispatch.setRequestExcludeHeaders(String.join(",", Arrays.asList(HttpHeaders.ACCEPT, "TEST"))); Map<String, String> headers = new HashMap<>(); headers.put(HttpHeaders.AUTHORIZATION, "Basic ..."); headers.put(HttpHeaders.ACCEPT, "abc"); headers.put("TEST", "test"); HttpServletRequest inboundRequest = EasyMock.createNiceMock(HttpServletRequest.class); EasyMock.expect(inboundRequest.getHeaderNames()).andReturn(Collections.enumeration(headers.keySet())).anyTimes(); Capture<String> capturedArgument = Capture.newInstance(); EasyMock.expect(inboundRequest.getHeader(EasyMock.capture(capturedArgument))) .andAnswer(() -> headers.get(capturedArgument.getValue())).anyTimes(); EasyMock.replay(inboundRequest); HttpUriRequest outboundRequest = new HttpGet(); dispatch.copyRequestHeaderFields(outboundRequest, inboundRequest); Header[] outboundRequestHeaders = outboundRequest.getAllHeaders(); assertThat(outboundRequestHeaders.length, is(1)); assertThat(outboundRequestHeaders[0].getName(), is(HttpHeaders.AUTHORIZATION)); }