@Test
public void testBasicUriGeneration() {

    Optimize optimize = new Optimize.Builder().addIndex("twitter").build();
    assertEquals("POST", optimize.getRestMethodName());
    assertEquals("twitter/_optimize", optimize.getURI(ElasticsearchVersion.UNKNOWN));
}