@Test
public void urlDoesNotContainIdIfIdNotSpecified() {

    // given
    ByteBufItemSource expectedItemSource = mock(ByteBufItemSource.class);
    String expectedId = UUID.randomUUID().toString();
    String expectedIndex = UUID.randomUUID().toString();
    String expectedMappingType = UUID.randomUUID().toString();
    IndexRequest.Builder builder = createIndexRequestBuilder(
            expectedItemSource, null, expectedIndex, expectedMappingType);
    // when
    IndexRequest request = builder.build();
    // then
    assertFalse(request.getURI().contains(expectedId));
}