httpClient.getConnectionManager().shutdown();
}
}
private MockAndProxyFacade buildFacade(final Mode mode) {
final Builder builder = new Builder();
return builder
.mode(mode)
.addForwardHttpRequestBuilder(new PassthroughForwardHttpRequestBuilder("localhost", SERVICE_PORT))
.httpRequestResponseLoggerFactory(new HttpRequestResponseFileLoggerFactory(LOGGING_DIRECTORY, LOGGING_FILE_NAME))
.port(MOCK_PROXY_PORT).httpResponseProvider(new FileHttpResponseProvider(LOGGING_DIRECTORY, LOGGING_FILE_NAME))
.build();