@Test
public void testSearchXCredentialStores() {

	VXCredentialStore vXCredentialStore = vXCredentialStore();
	List<VXCredentialStore> vXCredentialStores = Arrays.asList(vXCredentialStore);
	VXCredentialStoreList vXCredentialStoreList = new VXCredentialStoreList();
	vXCredentialStoreList.setVXCredentialStores(vXCredentialStores);
	SearchCriteria searchCriteria = new SearchCriteria();
	List<SortField> sortFields = null;
	Mockito.when(searchUtil.extractCommonCriterias(request, sortFields)).thenReturn(searchCriteria);
	Mockito.when(assetMgr.searchXCredentialStores(searchCriteria)).thenReturn(vXCredentialStoreList);
	VXCredentialStoreList actualvxCredentialStoreList = assetREST.searchXCredentialStores(request);
	Assert.assertEquals(vXCredentialStoreList.getVXCredentialStores(),
			actualvxCredentialStoreList.getVXCredentialStores());
	Mockito.verify(assetMgr).searchXCredentialStores(searchCriteria);
}