plan.expectsAffectedRows(true);
Job job = executor.newJob(plan);
assertThat(job.tasks().get(0), instanceOf(ESIndexTask.class));
List<ListenableFuture<TaskResult>> result = executor.execute(job);
TaskResult taskResult = result.get(0).get();
Object[][] indexResult = taskResult.rows();
assertThat(indexResult.length, is(0));
assertThat(taskResult.rowCount(), is(1L));
refresh();