}
@Test
public void testAddCommunityUser() throws Exception {
CommunityUser communityUser = new CommunityUser("gw1", "ogce","ogce@sciencegateway.org");
communityUserDAO.addCommunityUser(communityUser);
communityUser = new CommunityUser("gw1", "ogce2","ogce@sciencegateway.org");
communityUserDAO.addCommunityUser(communityUser);
CommunityUser user = communityUserDAO.getCommunityUser("gw1", "ogce");
Assert.assertNotNull(user);
Assert.assertEquals("ogce@sciencegateway.org", user.getUserEmail());
user = communityUserDAO.getCommunityUser("gw1", "ogce2");
Assert.assertNotNull(user);
Assert.assertEquals("ogce@sciencegateway.org", user.getUserEmail());
}