@Test
public void test19searchPolicies() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	List<RangerPolicy> policiesList = new ArrayList<RangerPolicy>();
	RangerService service = rangerService();
	String serviceName = service.getName();
	RangerPolicy rangerPolicy = rangerPolicy();
	policiesList.add(rangerPolicy);
	RangerPolicyList policyList = new RangerPolicyList(policiesList);
	Mockito.when(serviceREST.getServicePoliciesByName(serviceName, request)).thenReturn(policyList);
	List<RangerPolicy> dbRangerPolicyList = publicAPIsv2.searchPolicies(serviceName, request);
	Assert.assertNotNull(dbRangerPolicyList);
	Assert.assertEquals(dbRangerPolicyList.size(), policiesList.size());
	Mockito.verify(serviceREST).getServicePoliciesByName(serviceName, request);
}