@Test
public void test7getPolicy() throws Exception {

	RangerPolicy policy = rangerPolicy();
	RangerService service = rangerService();
	VXPolicy vXPolicy = vXPolicy(policy, service);
	Mockito.when(serviceREST.getPolicy(policy.getId())).thenReturn(policy);
	Mockito.when(serviceREST.getServiceByName(policy.getService())).thenReturn(service);
	Mockito.when(serviceUtil.toVXPolicy(policy, service)).thenReturn(vXPolicy);
	VXPolicy dbVXPolicy = publicAPIs.getPolicy(Id);
	Assert.assertNotNull(dbVXPolicy);
	Assert.assertEquals(dbVXPolicy, vXPolicy);
	Assert.assertEquals(dbVXPolicy.getPolicyName(), vXPolicy.getPolicyName());
	Assert.assertEquals(dbVXPolicy.getRepositoryType(), vXPolicy.getRepositoryType());
	Mockito.verify(serviceREST).getPolicy(Id);
	Mockito.verify(serviceREST).getServiceByName(policy.getService());
	Mockito.verify(serviceUtil).toVXPolicy(policy, service);
}