@Test
public void validateQueryWithIndex() {

    Validate validate = new Validate.Builder("{query:query}").index("twitter").build();
    assertEquals("POST", validate.getRestMethodName());
    assertEquals("{query:query}", validate.getData(null));
    assertEquals("twitter/_validate/query", validate.getURI(ElasticsearchVersion.UNKNOWN));
}