@Test
public void test86deleteXPermMap() {

	setup();
	VXResource vxresource=new VXResource();
	XXPermMapDao xXPermMapDao = Mockito.mock(XXPermMapDao.class);
	Mockito.when(daoManager.getXXPermMap()).thenReturn(xXPermMapDao);
	VXPermMap vXPermMap1=getVXPermMap();
	XXPermMap xXPermMap1=new XXPermMap();
	xXPermMap1.setId(vXPermMap1.getId());
	xXPermMap1.setResourceId(vXPermMap1.getResourceId());
	Mockito.when(xXPermMapDao.getById(xXPermMap1.getId())).thenReturn(xXPermMap1);
	Mockito.when(xResourceService.readResource(xXPermMap1.getResourceId())).thenReturn(vxresource);
	Mockito.when(xPermMapService.deleteResource(Mockito.anyLong())).thenReturn(true);
	xUserMgr.deleteXPermMap(vXPermMap1.getId(),true);
}