@Test
public void testSaveDeleteNotification() throws Exception {
User sysuser=APILocator.getUserAPI().getSystemUser();
Notification n = new Notification("NotificationTest1", NotificationLevel.ERROR, sysuser.getUserId());
n.setId(UUID.randomUUID().toString());
try {
HibernateUtil.startTransaction();
APILocator.getNotificationAPI().saveNotification(n);
Notification lastest = APILocator.getNotificationAPI().findNotification(n.getId());
assertTrue(n.getMessage().equals(lastest.getMessage()));
APILocator.getNotificationAPI().deleteNotification(lastest.getId());
assertNull(APILocator.getNotificationAPI().findNotification(lastest.getId()));
HibernateUtil.commitTransaction();
} catch (DotDataException e) {
try {
HibernateUtil.rollbackTransaction();
} catch (DotHibernateException e1) {