@Test
public void testAddLinks() {

	//Record
	setUpExpectations();
	JsonApiIdentifiable minimalEntity = createMinimalEntity();
	String linkUrl = "http://test.de";
	//Replay
	Response result = JsonApiResponse
		.createGetResponse(uriInfo)
		.data(minimalEntity)
		.addLink("TestLink", URI.create(linkUrl))
		.build();
	JsonNode resultAsJson = extractJsonEntity(result);
	Assert.assertTrue(resultAsJson.get("links").has("TestLink"));
	Assert.assertEquals(linkUrl, resultAsJson.get("links").get("TestLink").asText());
}