@Test
public void mappingTypeCanBeSet() {

    // given
    String expectedMappingType = UUID.randomUUID().toString();
    PooledItemSourceFactory bufferedSourceFactory = PooledItemSourceFactoryTest.createDefaultTestSourceFactoryConfig().build();
    BufferedBulkOperations bulkOperations = new BufferedBulkOperations(bufferedSourceFactory, new JacksonMixIn[]{}, expectedMappingType);
    ItemSource itemSource = mock(ItemSource.class);
    BufferedIndex item = (BufferedIndex) bulkOperations.createBatchItem("testIndex", itemSource);
    // when
    String type = item.getType();
    // then
    Assert.assertEquals(expectedMappingType, type);
}