@Test
public void testGetXResource() {

	VXResource expectedvxResource = vxResource(Id);
	RangerPolicy rangerPolicy = rangerPolicy(Id);
	RangerService rangerService = rangerService(Id);
	Mockito.when(serviceREST.getPolicy(Id)).thenReturn(rangerPolicy);
	Mockito.when(serviceREST.getServiceByName(rangerPolicy.getService())).thenReturn(rangerService);
	Mockito.when(serviceUtil.toVXResource(rangerPolicy, rangerService)).thenReturn(expectedvxResource);
	VXResource actualvxResource = assetREST.getXResource(Id);
	Assert.assertNotNull(actualvxResource);
	Assert.assertEquals(expectedvxResource, actualvxResource);
}