	@Test
	public void shuldCreateRelation() {

		context.setDocumentKey("key");
		
		Node parent = db.createNode();
		parent.setProperty("type", "album");
		
		Node child = db.createNode();
		child.setProperty("type", "artist");
		
		Relationship rel = this.docrel.buildRelation(parent, child, context);

		Assert.assertEquals(parent.getId(), rel.getStartNode().getId());
		Assert.assertEquals(child.getId(), rel.getEndNode().getId());
		Assert.assertEquals("key", rel.getType().name());

	}