Program: 166362
Project: 166362
Buggy source:
@Test public void test11CreateXUser(){
  setup();
  VXUser vxUser=vxUser();
  Collection<String> userRoleList=new ArrayList<String>();
  userRoleList.add("String_Node_Str");
  vxUser.setUserRoleList(userRoleList);
  ArrayList<String> userRoleListVXPortaUser=new ArrayList<String>();
  VXPortalUser vXPortalUser=new VXPortalUser();
  vXPortalUser.setUserRoleList(userRoleListVXPortaUser);
  Mockito.when(xUserService.createResource(vxUser)).thenReturn(vxUser);
  XXModuleDefDao value=Mockito.mock(XXModuleDefDao.class);
  Mockito.when(daoManager.getXXModuleDef()).thenReturn(value);
  List<XXModuleDef> lsvalue=new ArrayList<XXModuleDef>();
  Mockito.when(userMgr.createDefaultAccountUser((VXPortalUser)Mockito.anyObject())).thenReturn(vXPortalUser);
  VXUser dbUser=xUserMgr.createXUser(vxUser);
  Assert.assertNotNull(dbUser);
  userId=dbUser.getId();
  Assert.assertEquals(userId,dbUser.getId());
  Assert.assertEquals(dbUser.getDescription(),vxUser.getDescription());
  Assert.assertEquals(dbUser.getName(),vxUser.getName());
  Assert.assertEquals(dbUser.getUserRoleList(),vxUser.getUserRoleList());
  Assert.assertEquals(dbUser.getGroupNameList(),vxUser.getGroupNameList());
  Mockito.verify(xUserService).createResource(vxUser);
  Mockito.when(xUserService.readResourceWithOutLogin(userId)).thenReturn(vxUser);
  VXUser dbvxUser=xUserMgr.getXUser(userId);
  Mockito.verify(userMgr).createDefaultAccountUser((VXPortalUser)Mockito.anyObject());
  Mockito.verify(daoManager).getXXModuleDef();
  Assert.assertNotNull(dbvxUser);
  Assert.assertEquals(userId,dbvxUser.getId());
  Assert.assertEquals(dbvxUser.getDescription(),vxUser.getDescription());
  Assert.assertEquals(dbvxUser.getName(),vxUser.getName());
  Assert.assertEquals(dbvxUser.getUserRoleList(),vxUser.getUserRoleList());
  Assert.assertEquals(dbvxUser.getGroupNameList(),vxUser.getGroupNameList());
  Mockito.verify(xUserService).readResourceWithOutLogin(userId);
}

Fixed version (ground truth):
@Test public void test11CreateXUser(){
  setup();
  VXUser vxUser=vxUser();
  Collection<String> userRoleList=new ArrayList<String>();
  userRoleList.add("String_Node_Str");
  vxUser.setUserRoleList(userRoleList);
  ArrayList<String> userRoleListVXPortaUser=new ArrayList<String>();
  VXPortalUser vXPortalUser=new VXPortalUser();
  vXPortalUser.setUserRoleList(userRoleListVXPortaUser);
  Mockito.when(xUserService.createResource(vxUser)).thenReturn(vxUser);
  XXModuleDefDao value=Mockito.mock(XXModuleDefDao.class);
  Mockito.when(daoManager.getXXModuleDef()).thenReturn(value);
  Mockito.when(userMgr.createDefaultAccountUser((VXPortalUser)Mockito.anyObject())).thenReturn(vXPortalUser);
  VXUser dbUser=xUserMgr.createXUser(vxUser);
  Assert.assertNotNull(dbUser);
  userId=dbUser.getId();
  Assert.assertEquals(userId,dbUser.getId());
  Assert.assertEquals(dbUser.getDescription(),vxUser.getDescription());
  Assert.assertEquals(dbUser.getName(),vxUser.getName());
  Assert.assertEquals(dbUser.getUserRoleList(),vxUser.getUserRoleList());
  Assert.assertEquals(dbUser.getGroupNameList(),vxUser.getGroupNameList());
  Mockito.verify(xUserService).createResource(vxUser);
  Mockito.when(xUserService.readResourceWithOutLogin(userId)).thenReturn(vxUser);
  VXUser dbvxUser=xUserMgr.getXUser(userId);
  Mockito.verify(userMgr).createDefaultAccountUser((VXPortalUser)Mockito.anyObject());
  Mockito.verify(daoManager).getXXModuleDef();
  Assert.assertNotNull(dbvxUser);
  Assert.assertEquals(userId,dbvxUser.getId());
  Assert.assertEquals(dbvxUser.getDescription(),vxUser.getDescription());
  Assert.assertEquals(dbvxUser.getName(),vxUser.getName());
  Assert.assertEquals(dbvxUser.getUserRoleList(),vxUser.getUserRoleList());
  Assert.assertEquals(dbvxUser.getGroupNameList(),vxUser.getGroupNameList());
  Mockito.verify(xUserService).readResourceWithOutLogin(userId);
}