@Test
public void test5searchRepositories() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	List<RangerService> ret = new ArrayList<RangerService>();
	RangerService rangerService = rangerService();
	VXRepository vXRepository = vXRepository(rangerService);
	List<VXRepository> repoList = new ArrayList<VXRepository>();
	repoList.add(vXRepository);
	VXRepositoryList vXRepositoryList = new VXRepositoryList(repoList);
	SearchFilter filter = new SearchFilter();
	filter.setParam(SearchFilter.POLICY_NAME, "policyName");
	filter.setParam(SearchFilter.SERVICE_NAME, "serviceName");
	Mockito.when(searchUtil.getSearchFilterFromLegacyRequestForRepositorySearch(request, xAssetService.sortFields)).thenReturn(filter);
	Mockito.when(serviceREST.getServices(filter)).thenReturn(ret);
	Mockito.when(serviceUtil.rangerServiceListToPublicObjectList(ret)).thenReturn(vXRepositoryList);
	VXRepositoryList dbVXRepositoryList = publicAPIs.searchRepositories(request);
	Assert.assertNotNull(dbVXRepositoryList);
	Assert.assertEquals(dbVXRepositoryList.getResultSize(), vXRepositoryList.getResultSize());
}