given(proxyData.getPassword()).willReturn(password);
URI uri = new URI("http://www.test");
given(proxyService.select(uri)).willReturn(proxyDataListOne);
// when
WebProxyData webProxyData = webProxyConfig.getWebProxyData(uri);
// then
assertThat(webProxyData, notNullValue());
URI proxyUri = new URI(webProxyData.getProxyUri());
assertThat(proxyUri.getHost(), is(proxyHost));
assertThat(proxyUri.getPort(), is(proxyPort));
assertThat(webProxyData.getUserId(), is(userid));
assertThat(webProxyData.getPassword(), is(password));
}