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