@Test
public void addRelationship() {

	JsonApiResourceIdentifier dummy1Identifier = new JsonApiResourceIdentifier(dummy02);
	JsonApiResourceIdentifier dummy2Identifier = new JsonApiResourceIdentifier(dummy03);
	JsonApiResource result = new JsonApiResource(dummyObj,uri);
	result.addRelationship("First", dummy02, uri);
	result.addRelationship("Second", dummy03, anotherUri);
	JsonApiRelationship resultFirst = result.getRelationships().get("First");
	JsonApiRelationship resultSecond = result.getRelationships().get("Second");
	Assert.assertEquals(2, result.getRelationships().size());
	Assert.assertEquals(dummy1Identifier, resultFirst.getData().get(0));
	Assert.assertEquals(dummy2Identifier, resultSecond.getData().get(0));
	Assert.assertEquals(uri, resultFirst.getLinks().get(JsonLinks.RELATED));
	Assert.assertEquals(anotherUri, resultSecond.getLinks().get(JsonLinks.RELATED));
}