}
@Test
public void testVisitArrayStarExpression() throws IOException {
String sText = "children[*].name";
DottedExpression expr = ExpressionParser.parse(sText);
Model m1 = new Model("titi");
m1.setChildren(Lists.newArrayList(new Model("tutu")));
Model m2 = CompareTools.deepCopy(m1);
PropertyExpressionVisitor visitor = PropertyExpressionVisitor.of(m1, m2);
expr.accept(visitor);
assertThat(visitor.getGraph().isChanged(), CoreMatchers.equalTo(false));
m2.getChildren().get(0).setName("toto");
visitor = PropertyExpressionVisitor.of(m1, m2);
expr.accept(visitor);
assertThat(visitor.getGraph().isChanged(), CoreMatchers.equalTo(true));
m2.getChildren().get(0).setName("tutu");
visitor = PropertyExpressionVisitor.of(m1, m2);
expr.accept(visitor);
assertThat(visitor.getGraph().isChanged(), CoreMatchers.equalTo(false));
m2.getChildren().add(new Model("toto"));
visitor = PropertyExpressionVisitor.of(m1, m2);
expr.accept(visitor);
assertThat(visitor.getGraph().isChanged(), CoreMatchers.equalTo(true));
}