}
@Test
public void prepareRequestTest() throws AuthFatalFailureException {
try {
DefaultBoxRequest request = new DefaultBoxRequest(config, new BoxJSONParser(new BoxResourceHub()), uri, restMethod, null);
request.addQueryParam("a", "b");
request.setEntity(requestEntity);
request.prepareRequest();
HttpRequestBase rawRequest = request.getRawRequest();
Assert.assertEquals(HttpPost.class, rawRequest.getClass());
URI url = rawRequest.getURI();
Assert.assertEquals(scheme, url.getScheme());
Assert.assertEquals(host, url.getHost());
Assert.assertEquals(TestUtils.getConfig().getApiUrlPath().concat(uri), url.getPath());