@Test
public void testGetResponseCollection() {

	//Record
	setUpExpectations();
	new Expectations() {{
		uriInfo.getAbsolutePath();
		result = URI.create(COLLECTION_PATH);
	}};
	List<JsonApiIdentifiable> entityList = new ArrayList<>();
	for (int i = 0; i < NR_ENTITIES; i++) {
		entityList.add(createCustomMinimalEntity(String.valueOf(i)));
	}
	//Replay
	Response result = JsonApiResponse
		.createGetResponse(uriInfo)
		.data(entityList)
		.build();
	//Verify
	Assert.assertEquals(200, result.getStatus());
	assertIsValidJsonApiDataResponse(result);
	JsonNode jArray = extractJsonEntity(result);
	Assert.assertTrue(jArray.get("data").isArray());
}