/**
* Test of saveRaxaAlert method, of class HibernateRaxaAlertDAO.
*/
@Test
public void testSaveRaxaAlert() {
RaxaAlert rAlert = new RaxaAlert();
//NOTE: never set Id, will be generated automatically (when saving)
rAlert.setName("TestList3");
rAlert.setDescription("Third Test List");
rAlert.setCreator(Context.getUserContext().getAuthenticatedUser());
rAlert.setDateCreated(new java.util.Date());
rAlert.setUuid("68547121-1b70-465c-99ee-c9dfd95e7d30");
rAlert.setVoided(Boolean.FALSE);
rAlert.setProviderSentId(1);
rAlert.setProviderRecipientId(2);
dao.saveRaxaAlert(rAlert);
RaxaAlert result = dao.getRaxaAlertByName("TestList3", true).get(0);
String name = result.getName();
assertEquals(name, "TestList3");
}