BatchInserter graphDb = newBatchInserter();
long node1 = graphDb.createNode( null );
long node2 = graphDb.createNode( null );
long rel1 = graphDb.createRelationship( node1, node2, RelTypes.BATCH_TEST,
null );
SimpleRelationship rel = graphDb.getRelationshipById( rel1 );
assertEquals( rel.getStartNode(), node1 );
assertEquals( rel.getEndNode(), node2 );
assertEquals( RelTypes.BATCH_TEST.name(), rel.getType().name() );
graphDb.shutdown();
}