@Test
public void throwsOnStringSource() {

    // given
    PooledItemSourceFactory itemSourceFactory = PooledItemSourceFactoryTest.createDefaultTestSourceFactoryConfig().build();
    HCBatchOperations batchOperations = new HCBatchOperations(itemSourceFactory, null);
    String indexName = UUID.randomUUID().toString();
    String source = UUID.randomUUID().toString();
    expectedException.expect(UnsupportedOperationException.class);
    expectedException.expectMessage("Use ItemSource based API instead");
    // when
    batchOperations.createBatchItem(indexName, source);
}