@Test
public void itemsAreIdenticalIfIndicesAndTypeAreTheSame() {

    // given
    String index1 = UUID.randomUUID().toString();
    String type1 = UUID.randomUUID().toString();
    IndexRequest item1 = IndexRequestTest.createIndexRequestBuilder()
            .type(type1)
            .index(index1)
            .build();
    IndexRequest item2 = IndexRequestTest.createIndexRequestBuilder()
            .type(type1)
            .index(index1)
            .build();
    Collection<IndexRequest> items = new ArrayList<>();
    items.add(item1);
    items.add(item2);
    // when
    BatchRequest batchRequest = createDefaultTestObjectBuilder().build();
    IndexRequest result = batchRequest.uniformAction(items);
    // then
    assertEquals(result, item1);
}