@Test
public void test26getPolicies() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	RangerPolicyList policyList = Mockito.mock(RangerPolicyList.class);
	List<RangerPolicy> rangerPolicies = new ArrayList<RangerPolicy>();
	RangerPolicy rangerpolicy1 = rangerPolicy();
	RangerPolicy rangerpolicy2 = rangerPolicy1();
	rangerPolicies.add(rangerpolicy1);
	rangerPolicies.add(rangerpolicy2);
	Mockito.when(serviceREST.getPolicies(request)).thenReturn(policyList);
	Mockito.when(policyList.getPolicies()).thenReturn(rangerPolicies);
	List<RangerPolicy> dbRangerPolicies = publicAPIsv2.getPolicies(request);
	Assert.assertNotNull(dbRangerPolicies);
	Assert.assertEquals(dbRangerPolicies.size(), rangerPolicies.size());
	Mockito.verify(serviceREST).getPolicies(request);
}