@Test
public void urlContainsType() {

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