### Question:
CMOdataHTTPFactory extends BasicAuthHttpClientFactory { @Override public DefaultHttpClient create(final HttpMethod method, final URI uri) { final DefaultHttpClient httpClient = super.create(method, uri); httpClient.getParams().setParameter(CoreProtocolPNames.USER_AGENT, format("SAP CM Client/%s based on %s", VersionHelper.getShortVersion(), USER_AGENT)); httpClient.setCookieStore(this.cookieStore); return httpClient; } CMOdataHTTPFactory(String username, String password); @Override DefaultHttpClient create(final HttpMethod method, final URI uri);  }### Answer:
@Test public void testUserAgentStringContainsCMClientHint() throws Exception { HttpClient httpClient = new CMOdataHTTPFactory("me", "*****").create(HttpMethod.GET, new URI("http: assertThat((String)httpClient.getParams().getParameter(CoreProtocolPNames.USER_AGENT), containsString("SAP CM Client")); }