@Test
  public void createdNodeShouldBeInDatabase() throws Exception {
    NodeRepresentation noderep = actions.createNode(Collections.<String, Object>emptyMap());

    Transaction tx = database.getGraph().beginTx();
    try {
      assertNotNull(database.getGraph().getNodeById(noderep.getId()));
    } finally {
      tx.finish();
    }
  }
 // TODO remove once reference node is gone
 @Test
 public void shouldBeAbleToGetReferenceNode() throws Exception {
   NodeRepresentation rep = actions.getReferenceNode();
   actions.getNode(rep.getId());
 }