@SuppressWarnings("unchecked")
@Test
public void Test7searchXAccessAudits() {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	searchCriteria.addParam("name", name);
	VXAccessAuditList vxAAListExp = new VXAccessAuditList();
	vxAAListExp.setTotalCount(6L);
	Mockito.when(searchUtil.extractCommonCriterias((HttpServletRequest) Mockito.any(),
			(List<SortField>) Mockito.any())).thenReturn(searchCriteria);
	Mockito.when(xAuditMgr.searchXAccessAudits(searchCriteria)).thenReturn(vxAAListExp);
	VXAccessAuditList vxAAListAct = auditREST.searchXAccessAudits(request);
	Assert.assertNotNull(vxAAListAct);
	Assert.assertEquals(vxAAListExp, vxAAListAct);
	Assert.assertEquals(vxAAListExp.getTotalCount(), vxAAListAct.getTotalCount());
	Mockito.verify(searchUtil).extractCommonCriterias((HttpServletRequest) Mockito.any(),
			(List<SortField>) Mockito.any());
	Mockito.verify(xAuditMgr).searchXAccessAudits(searchCriteria);
}