}
@Test
public void testSetNodes() {
Set<Node> ooph = new HashSet<Node>();
ooph.add( new Node ("test"));
Set<Node> oldOnes = master.getNodes();
HashMap<Node,Set<Transition>> oldTransitions = master.getTransitions();
assertEquals(1,master.getNodes().size());
master.setNodes(ooph);
assertEquals(ooph.size(),master.getNodes().size());
assertSame(ooph,master.getNodes());
master.setNodes(oldOnes);
assertFalse(ooph == master.getNodes());
assertSame(oldOnes,master.getNodes());
Graph someOtherGraph = new Graph();
Node a, b;
a = new Node("a");
b = new Node("b");
someOtherGraph.addNode(a);
someOtherGraph.addNode(b);
someOtherGraph.connect(a, b, "test");
assertTrue(someOtherGraph.connectivity(a, b));
assertTrue(a.pathTo(b));
Set<Node> newOnes = someOtherGraph.getNodes();
master.setNodes(newOnes);
assertFalse(master.getNodes().contains(in));