@Test
public void test41createXPermMap() {

	VXPermMap permMap = testcreateXPermMap();
	permMap.setResourceId(null);
	Mockito.when(xResourceService.readResource(permMap.getResourceId())).thenReturn(null);
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyString(), (MessageEnums)Mockito.any())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	
	VXPermMap retVxGroup=xUserRest.createXPermMap(permMap);
	
	assertEquals(permMap.getId(),retVxGroup.getId());
	assertEquals(permMap.getClass(),retVxGroup.getClass());
	assertNotNull(retVxGroup);
	
	Mockito.verify(xUserMgr).createXPermMap(permMap);
	Mockito.verify(xResourceService).readResource(permMap.getResourceId());
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyString(), (MessageEnums)Mockito.any());
}