}
@Test
public void Main_doUpdateStateObserver_OneValidStateObserver()
{
main.doAddStateObserver(new StateObserverInfo(soIffy, Type.INTEGER, null));
List<StateObserver> soSet = main.stateObservers().soList();
StateObserver so = null;
for (StateObserver s : soSet) {
if (s.name().equals(soIffy))
so = s;
}
StateObserverInfo soInfo = new StateObserverInfo(soPine, Type.BOOLEAN, null);
main.doUpdateStateObserver(so, soInfo);
assertTrue(soSet.size() == 2);
assertTrue(so.name().equals(soPine));
assertTrue(so.type().equals(Type.BOOLEAN));
assertTrue(so.invariant().equals(Expr.EMPTY));