@Test
public void testDeletePlan() throws Exception {
Plan plan = plan("delete from users where id = 1");
Iterator<PlanNode> iterator = plan.iterator();
ESDeleteNode node = (ESDeleteNode) iterator.next();
assertThat(node.index(), is("users"));
assertThat(node.id(), is("1"));
assertFalse(iterator.hasNext());
}