@Test
public void createsBulkOperations() {

    // given
    BatchEmitterFactory factory = new BulkEmitterFactory();
    JestHttpObjectFactory clientObjectFactory = spy(createTestObjectFactoryBuilder().build());
    // when
    factory.createInstance(1, 1, clientObjectFactory, new NoopFailoverPolicy());
    // then
    Mockito.verify(clientObjectFactory).createBatchOperations();
}