@Test
public void test38getXPermMapVXResourceNull() throws Exception{

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

}