@Test
public void equals() {

    Search search1 = new Search.Builder("{\"match_all\" : {}}")
            .addIndex("twitter")
            .build();
    Search search2 = new Search.Builder("{\"match_all\" : {}}").build();
    MultiSearch multiSearch1 = new MultiSearch.Builder(Arrays.asList(search1, search2)).build();
    MultiSearch multiSearch1Duplicate = new MultiSearch.Builder(Arrays.asList(search1, search2)).build();
    assertEquals(multiSearch1, multiSearch1Duplicate);
}