### Question:
HCBatchOperations implements BatchOperations<BatchRequest> { @Override public BatchBuilder<BatchRequest> createBatchBuilder() { return new BatchBuilder<BatchRequest>() { private BatchRequest.Builder builder = new BatchRequest.Builder() .withBuffer(pooledItemSourceFactory.createEmptySource()) .withObjectWriter(objectWriter); @Override public void add(Object item) { builder.add((IndexRequest)item); } @Override public BatchRequest build() { return builder.build(); } }; } HCBatchOperations(PooledItemSourceFactory pooledItemSourceFactory, String mappingType); @Override Object createBatchItem(String indexName, Object source); @Override Object createBatchItem(String indexName, ItemSource source); @Override BatchBuilder<BatchRequest> createBatchBuilder();  }### Answer:
@Test public void createsBatchBuilder() { PooledItemSourceFactory itemSourceFactory = PooledItemSourceFactoryTest.createDefaultTestSourceFactoryConfig().build(); BatchBuilder<BatchRequest> builder = new HCBatchOperations(itemSourceFactory, null).createBatchBuilder(); BatchRequest request = builder.build(); assertEquals(BatchRequest.class, request.getClass()); }