@Test
public void methodIsPostIfScrollIdIsLong() {

    String scrollId = Strings.padStart("scrollId", 2000, 'x');
    JsonObject expectedResults = new JsonObject();
    expectedResults.addProperty("scroll_id", scrollId);
    SearchScroll searchScroll = new SearchScroll.Builder(scrollId, "1m").build();
    String uri = searchScroll.getURI(ElasticsearchVersion.UNKNOWN);
    assertEquals("POST", searchScroll.getRestMethodName());
    assertEquals(expectedResults.toString(), searchScroll.getData(new Gson()));
    assertTrue(uri.length() < 2000);
    assertFalse(uri.contains(scrollId));
}