@Test
public void test17GetXUserByUserName() {

	setupUser();
	VXUser vxUser = vxUser();
	Mockito.when(xUserService.getXUserByUserName(vxUser.getName())).thenReturn(vxUser);
	XXModuleDefDao xxModuleDefDao = Mockito.mock(XXModuleDefDao.class);
	Mockito.when(daoManager.getXXModuleDef()).thenReturn(xxModuleDefDao);
	VXUser dbVXUser = xUserMgr.getXUserByUserName(vxUser.getName());
	Assert.assertNotNull(dbVXUser);
	userId = dbVXUser.getId();
	Assert.assertEquals(userId, dbVXUser.getId());
	Assert.assertEquals(dbVXUser.getName(), vxUser.getName());
	Assert.assertEquals(dbVXUser.getOwner(), vxUser.getOwner());
	Mockito.verify(xUserService, Mockito.atLeast(2)).getXUserByUserName(vxUser.getName());
}