### Question:
RequestBuilder { public String uploadFileForTextDownload(String url, Map<String, String> params, String fileField, byte[] data) throws Exception { HttpPost request = makeFileUploadRequest(url, params, fileField, data); return downloadToText(createExecutor(request)); } RequestBuilder(RequestExecutorFactory factory); byte[] getForBinary(String url); String getForText(String url); byte[] postForBinary(String url, Map<String, String> params); String postForText(String url, Map<String, String> params); String rawPostForText(String url, byte[] data); String rawPostForText(String url, byte[] data, Map<String, String> extraHeaders); String uploadFileForTextDownload(String url, Map<String, String> params, String fileField, byte[] data);  }### Answer:
@Test public void uploadFileForTextCreatesExecutorWithCorrectRequestAndCredentials() throws Exception { String url = "my_url"; builder.uploadFileForTextDownload(url, new HashMap<String, String>(), "", new byte[0]); verifyRequestAndCredentials(url); }