@Test
public void testUpdateAssignments() throws Exception {
UpdateAnalysis.NestedAnalysis analysis = analyze("update users set name='Trillian'");
assertThat(analysis.assignments().size(), is(1));
assertThat(analysis.table().ident(), is(new TableIdent(null, "users")));
Reference ref = analysis.assignments().keySet().iterator().next();
assertThat(ref.info().ident().tableIdent().name(), is("users"));
assertThat(ref.info().ident().columnIdent().name(), is("name"));
assertTrue(analysis.assignments().containsKey(ref));