}
@Test
public void doUpdateStateObserver_changeInvariant()
{
Expr e = new Expr("Pine");
StateObserverInfo soInfo = new StateObserverInfo(soPine, Type.INTEGER, e);
main.doAddStateObserver(soInfo);
StateObserver so = new StateObserver(soInfo);
Expr newE = new Expr("Pino");
StateObserverInfo newSoInfo = new StateObserverInfo(soPine, Type.INTEGER, newE);
main.doUpdateStateObserver(so, newSoInfo);
assertTrue(so.name().equals(soPine));
assertTrue(so.type().equals(Type.INTEGER));
assertTrue(so.invariant().equals(newE));