DeleteAnalysis.NestedDeleteAnalysis analysis = analyze("delete from users where name='Trillian'");
assertEquals(TEST_DOC_TABLE_IDENT, analysis.table().ident());
assertThat(analysis.rowGranularity(), is(RowGranularity.DOC));
Function whereClause = (Function)analysis.whereClause().query();
assertEquals(EqOperator.NAME, whereClause.info().ident().name());
assertFalse(whereClause.info().type() == FunctionInfo.Type.AGGREGATE);
assertThat(whereClause.arguments().get(0), IsInstanceOf.instanceOf(Reference.class));
assertLiteralSymbol(whereClause.arguments().get(1), "Trillian");
}