@Test
public void testGetNode() {

    GraphStore graphStore = new GraphStore();
    Node n1 = graphStore.factory.newNode("foo");
    graphStore.addNode(n1);
    Assert.assertSame(graphStore.getNode("foo"), n1);
    Assert.assertNull(graphStore.getNode("bar"));
    Assert.assertTrue(graphStore.hasNode("foo"));
    Assert.assertFalse(graphStore.hasNode("bar"));
}