@@ -0,0 +1,1423 @@
+/*%0A *  Copyright (C) 2011-2012 The Animo Project%0A *  http://animotron.org%0A *  %09%0A *  This file is part of Animotron.%0A *  %0A *  Animotron is free software: you can redistribute it and/or modify%0A *  it under the terms of the GNU Affero General Public License as %0A *  published by the Free Software Foundation, either version 3 of %0A *  the License, or (at your option) any later version.%0A *  %0A *  Animotron is distributed in the hope that it will be useful,%0A *  but WITHOUT ANY WARRANTY; without even the implied warranty of%0A *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A *  GNU Affero General Public License for more details.%0A *  %0A *  You should have received a copy of %0A *  the GNU Affero General Public License along with Animotron.  %0A *  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0Apackage org.animotron;%0A%0Aimport junit.framework.Assert;%0Aimport org.animotron.expression.Expression;%0Aimport org.junit.Test;%0A%0Aimport static org.animotron.graph.AnimoGraph.*;%0A%0A/**%0A * @author %3Ca href=%22mailto:gazdovsky@gmail.com%22%3EEvgeny Gazdovsky%3C/a%3E%0A *%0A */%0Apublic class OnOffTest extends ATest %7B%0A%0A    @Test%0A%09public void test() throws Throwable %7B%0A%0A        Expression e = testAnimo(%22def a b.%22);%0A%0A        long id = e.getId();%0A%0A        assertAnimoResult(%22a%22, %22a b.%22);%0A%0A        shutdownDB();%0A        startDB(DATA_FOLDER);%0A%0A        Assert.assertNotNull(getDb().getNodeById(id));%0A%0A        assertAnimoResult(%22a%22, %22a b.%22);%0A%0A    %7D%0A%0A%7D

test shadowing