@Test
public void testCountXCredentialStores() {

	VXLong expectedvXLong = new VXLong();
	SearchCriteria searchCriteria = new SearchCriteria();
	List<SortField> sortFields = null;
	Mockito.when(searchUtil.extractCommonCriterias(request, sortFields)).thenReturn(searchCriteria);
	Mockito.when(assetMgr.getXCredentialStoreSearchCount(searchCriteria)).thenReturn(expectedvXLong);
	VXLong actualvXLong = assetREST.countXCredentialStores(request);
	Assert.assertEquals(expectedvXLong, actualvXLong);
	Mockito.verify(assetMgr).getXCredentialStoreSearchCount(searchCriteria);
}