@Test
public void testAddIncluded() {

	//Record
	setUpExpectations();
	JsonApiIdentifiable entityWithAttributes = createEntityWithAttributes();
	JsonApiIdentifiable relatedEntity = createEntityWithAttributes("related");
	//Replay
	Response result = JsonApiResponse
		.createGetResponse(uriInfo)
		.data(entityWithAttributes)
		.addRelationship("related", relatedEntity, uriInfo.getAbsolutePath())
		.addIncluded(relatedEntity)
		.build();
	//Verify
	assertIsValidJsonApiDataResponse(result);
	JsonNode resultJson = extractJsonEntity(result);
	Assert.assertTrue(resultJson.has("included"));
	Assert.assertEquals(1, resultJson.get("included").size());
	JsonNode includedData = resultJson.get("included").get(0);
	assertIsValidDataNode(includedData);
	Assert.assertEquals("related", includedData.get("id").textValue());
}