@Test
public void testRemoveNode() {

    GraphStore graphStore = GraphGenerator.generateSmallMultiTypeGraphStore();
    Node[] nodes = graphStore.getNodes().toArray();
    for (Node n : nodes) {
        Edge[] edges = graphStore.getEdges(n).toArray();
        Assert.assertTrue(graphStore.removeNode(n));
        Assert.assertFalse(graphStore.contains(n));
        for (Edge e : edges) {
            Assert.assertFalse(graphStore.contains(e));
        }
    }
    Assert.assertEquals(graphStore.getNodeCount(), 0);
    Assert.assertEquals(graphStore.getEdgeCount(), 0);
}