public void testSimple() throws Exception {
NotificationServiceImpl nsi = new NotificationServiceImpl();
NotificationID id = nsi.notify(new UserID(1), "test message");
assertTrue(id != null);
assertTrue(id.getID() == 1);
Notification impl = nsi.getNotification(id);
assertTrue(impl != null);
assertTrue(impl instanceof NotificationImpl);
assertTrue(impl.getMessage().equals("test message"));
assertTrue(impl.getUserID().equals(new UserID(1)));
assertTrue(impl.getStatus() == Notification.STATUS_ACTIVE);
List l = nsi.getNotificationsForUser(new UserID(1));
assertTrue(l != null);
assertTrue(l.size() == 1);
}