@Test
public void testGetResponseRestrictTo() {

	//Record
	setUpExpectations();
	JsonApiIdentifiable entity = createEntityWithAttributes();
	//Replay
	Response result = JsonApiResponse
		.createGetResponse(uriInfo)
		.data(entity)
		.restrictTo("intAttribute")
		.build();
	//Verify
	assertIsValidJsonApiDataResponse(result);
	JsonNode resultJson = extractJsonEntity(result).get("data");
	Assert.assertEquals(3, resultJson.size());
	Assert.assertTrue(resultJson.has("attributes"));
	Assert.assertEquals(1, resultJson.get("attributes").size());
	Assert.assertEquals(1, resultJson.get("attributes").get("intAttribute").asInt());
}