### Question:
HCHttp implements ClientObjectFactory<HttpClient, BatchRequest> { @Override public BatchOperations<BatchRequest> createBatchOperations() { return new HCBatchOperations(itemSourceFactory, mappingType); } HCHttp(Builder builder); @Override Function<BatchRequest, Boolean> createFailureHandler(FailoverPolicy failover); @Override BatchOperations<BatchRequest> createBatchOperations(); @Override Collection<String> getServerList(); @Override HttpClient createClient(); @Override Function<BatchRequest, Boolean> createBatchListener(FailoverPolicy failoverPolicy); @Override void execute(IndexTemplate indexTemplate); @Override void addOperation(Operation operation); @PluginBuilderFactory static HCHttp.Builder newBuilder(); @Override void start(); @Override void stop(); @Override boolean isStarted(); @Override boolean isStopped(); static final String PLUGIN_NAME; }### Answer:
@Test public void createsHCBatchOperationsByDefault() { HCHttp factory = spy(createDefaultHttpObjectFactoryBuilder().build()); BatchOperations<BatchRequest> batchOperation = factory.createBatchOperations(); assertEquals(HCBatchOperations.class, batchOperation.getClass()); }