@Test
public void itemsAreNotIdenticalIfBothIndicesAndTypesAreDifferent() {

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