@Test
public void test_integration() {

	// setup two policies with resources that are structurally different but semantically the same.
	RangerPolicy aPolicy = mock(RangerPolicy.class);
	Map<String, RangerPolicyResource> resources = _utils.createPolicyResourceMap(first);
	when(aPolicy.getResources()).thenReturn(resources);
	RangerPolicyResourceSignature signature = new RangerPolicyResourceSignature(aPolicy);
	
	RangerPolicy anotherPolicy = mock(RangerPolicy.class);
	resources = _utils.createPolicyResourceMap(data_second);
	when(anotherPolicy.getResources()).thenReturn(resources);
	RangerPolicyResourceSignature anotherSignature = new RangerPolicyResourceSignature(anotherPolicy);
	Assert.assertTrue(signature.equals(anotherSignature));
	Assert.assertTrue(anotherSignature.equals(signature));
}