*/
public class GetDocumentRequestBuilderTest extends RequestBuilderTestBase {
@Test
public void buildHttpUriRequest() {
GetDocumentRequest get = new GetDocumentRequest("GetDocumentRequestBuilderTest", 1);
setTrackingVariables(get);
get.setFields("fields");
GetDocumentRequestBuilder builder = new GetDocumentRequestBuilder();
HttpUriRequest httpUriRequest = builder.build(get);
Assert.assertEquals(httpUriRequest.getClass(), HttpGet.class);
Assert.assertEquals(httpUriRequest.getURI().getPath(), "/rest/1.0/model/GetDocumentRequestBuilderTest/doc/1");
Map<String, String> params = parseQueryParams(httpUriRequest);
assertContainsTrackingVariables(params);
Assert.assertEquals(params.get("fl"), get.getFields());
}