### Question:
RequestExecutor { @Override public String toString() { return LOG.getName() + "\n" + request.getMethod() + "\n" + request.getURI().toString() + "\n" + credentials.getUserName() + " " + credentials.getPassword(); } RequestExecutor(String url, HttpClientFactory factory, Settings settings);   RequestExecutor(HttpUriRequest request, HttpClientFactory factory, Settings settings); RequestExecutor setCredentials(String username, String password); RequestExecutor setCredentials(UsernamePasswordCredentials credentials); BufferedHttpEntity execute(); @Override String toString();  }### Answer:
@Test public void constructorTest() throws URISyntaxException { HttpUriRequest request = new HttpPost(new URI("http", "userInfo", "kjhgfdskdfghksadlfg.com", 1337, "/dfgdfd/dfgdff.html", "xdxd", "dsfsd")); executor = new RequestExecutor(request, factory, mock(Settings.class)); assertTrue(executor.toString().startsWith("fi.helsinki.cs.tmc.core.services.http.RequestExecutor")); assertTrue(executor.toString().contains("POST")); assertTrue(executor.toString().contains("userInfo")); }