@@ -0,0 +1,1426 @@
+package uk.me.grapheme.server;%0A%0Aimport junit.framework.Assert;%0Aimport junit.framework.TestCase;%0Aimport uk.me.graphe.graphmanagers.OTGraphManager2d;%0Aimport uk.me.graphe.graphmanagers.OTGraphManagerFactory;%0Aimport uk.me.graphe.server.DataManager;%0Aimport uk.me.graphe.server.messages.operations.NoOperation;%0A%0Apublic class DataManagerTest extends TestCase %7B%0A    public void testCreate_single() %7B%0A        int key = DataManager.create();%0A        OTGraphManager2d manager = DataManager.getGraph(key);%0A        Assert.assertEquals(key, manager.getGraphId());%0A        Assert.assertEquals(0, manager.getStateId());%0A    %7D%0A    %0A    public void testCreate_multiple() %7B%0A        int key = DataManager.create();%0A        int key2 = DataManager.create();%0A        OTGraphManager2d manager = DataManager.getGraph(key);%0A        OTGraphManager2d manager2 = DataManager.getGraph(key2);%0A        Assert.assertNotSame(manager, manager2);%0A    %7D%0A    %0A    public void testSave() %7B%0A        int key = DataManager.create();%0A        OTGraphManager2d manager = OTGraphManagerFactory.newInstance(key);%0A        manager.applyOperation(new NoOperation());%0A        Assert.assertNotSame(DataManager.getGraph(key), manager);%0A        DataManager.save(manager);%0A        OTGraphManager2d manager2 = DataManager.getGraph(key);%0A        Assert.assertEquals(1, manager2.getStateId());%0A    %7D%0A    %0A    public void testGet() %7B%0A        this.testCreate_single();%0A        %0A    %7D%0A%7D%0A

add a test for the datamanger