OperationRouting operationRouting = mock(OperationRouting.class);
mockShard(operationRouting, 1);
mockShard(operationRouting, 2);
mockShard(operationRouting, 3);
when(clusterService.operationRouting()).thenReturn(operationRouting);
final TransportShardBulkAction transportShardBulkAction = mock(TransportShardBulkAction.class);
final BulkShardProcessor bulkShardProcessor = new BulkShardProcessor(
clusterService,
ImmutableSettings.EMPTY,