@Test
public void testBasicUriGenerationWithWaitIfOngoing() {

    Flush flush = new Flush.Builder().addIndex("twitter").waitIfOngoing().build();
    assertEquals("POST", flush.getRestMethodName());
    assertEquals("twitter/_flush?wait_if_ongoing=true", flush.getURI(ElasticsearchVersion.UNKNOWN));
}