@Test
public void testBasicUriGeneration() {

    Rollover rollover = new Rollover.Builder("twitter").conditions(rolloverConditions).build();
    assertEquals("POST", rollover.getRestMethodName());
    assertEquals("twitter/_rollover", rollover.getURI(ElasticsearchVersion.UNKNOWN));
    assertEquals("{\"conditions\":{\"max_age\":\"1d\",\"max_docs\":\"10000\"}}", rollover.getData(new Gson()));
}