@Test
public void testAddIncludedWithCollection() {

	//Record
	setUpExpectations();
	JsonApiIdentifiable minimalEntity = createMinimalEntity();
	List<JsonApiIdentifiable> relatedCollection = new LinkedList<>();
	for (int i = 0; i < NR_ENTITIES; i++) {
		relatedCollection.add(createCustomMinimalEntity(String.valueOf(i)));
	}
	//Replay
	Response result = JsonApiResponse
		.createGetResponse(uriInfo)
		.data(minimalEntity)
		.addRelationship("relatedCollection", relatedCollection, uriInfo.getAbsolutePath())
		.addIncluded(relatedCollection.get(0))
		.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("0", includedData.get("id").textValue());
}