@Test
public void testDistributedMergeTask() throws Exception {
ClusterService clusterService = cluster().getInstance(ClusterService.class);
Functions functions = cluster().getInstance(Functions.class);
AggregationFunction countAggregation =
(AggregationFunction)functions.get(new FunctionIdent(CountAggregation.NAME, ImmutableList.<DataType>of()));
TransportMergeNodeAction transportMergeNodeAction = cluster().getInstance(TransportMergeNodeAction.class);
Set<String> nodes = new HashSet<>();
for (DiscoveryNode discoveryNode : clusterService.state().nodes()) {