@@ -0,0 +1,1239 @@
+package org.graphwalker.core.machine;%0A%0Aimport org.graphwalker.core.condition.VertexCoverage;%0Aimport org.graphwalker.core.generator.ShortestAllPaths;%0Aimport org.graphwalker.core.model.Action;%0Aimport org.graphwalker.core.model.Edge;%0Aimport org.graphwalker.core.model.Model;%0Aimport org.graphwalker.core.model.Vertex;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * @author Nils Olsson%0A */%0Apublic class AccessModelTest %7B%0A%0A    @Test%0A    public void read() %7B%0A        ExecutionContext context = createContext();%0A        Assert.assertThat((Double)context.getAttribute(%22x%22), is(1.0));%0A    %7D%0A%0A    @Test%0A    public void write() %7B%0A        ExecutionContext context = createContext();%0A        context.setAttribute(%22y%22, 2);%0A        Assert.assertThat((Integer)context.getAttribute(%22y%22), is(2));%0A    %7D%0A%0A    private ExecutionContext createContext() %7B%0A        Model model = new Model();%0A        model.addEdge(new Edge()%0A                .setSourceVertex(new Vertex())%0A                .setTargetVertex(new Vertex()));%0A        ExecutionContext context = new TestExecutionContext(model, new ShortestAllPaths(new VertexCoverage(100)));%0A        context.execute(new Action(%22x = 1;%22));%0A        return context;%0A    %7D%0A%7D%0A

Add test for manipulate model variables