RestUtils.putData(target, "{\"message\" : \"Hello World\",\"message_date\" : \"2014-05-25\"}".getBytes());
RestUtils.putData(target, "{\"message\" : \"Goodbye World\",\"message_date\" : \"2014-05-25\"}".getBytes());
RestUtils.refresh(index);
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("es-spout", new TestSpout(new EsSpout(target, "?q=*")));
builder.setBolt("test-bolt", new CapturingBolt()).shuffleGrouping("es-spout");
MultiIndexSpoutStormSuite.run(index + "simple", builder.createTopology(), COMPONENT_HAS_COMPLETED);
COMPONENT_HAS_COMPLETED.waitFor(1, TimeValue.timeValueSeconds(10));