@Test
public void test16FindByEmailAddress() {

	XXPortalUserDao userDao = Mockito.mock(XXPortalUserDao.class);
	XXPortalUser user = new XXPortalUser();
	String emailId = "test001user@apache.org";
	Mockito.when(daoManager.getXXPortalUser()).thenReturn(userDao);
	Mockito.when(userDao.findByEmailAddress(emailId)).thenReturn(user);
	XXPortalUser dbXXPortalUser = userMgr.findByEmailAddress(emailId);
	Assert.assertNotNull(dbXXPortalUser);
	Assert.assertNotEquals(emailId, dbXXPortalUser.getEmailAddress());
	Mockito.verify(daoManager).getXXPortalUser();
}