public class NotificationServiceImplTestCase extends TestCase{
private NotificationServiceImpl notificationService;
public void testCreateNew() {
Notification notification = notificationService.createNew( new UserID( 1 ), "Hello World" );
assertNotNull( "Notification should not be null.", notification );
assertEquals( "UserID should be 1.", new UserID( 1 ), notification.getUserID() );
assertEquals( "Message should be Hello World", "Hello World", notification.getMessage() );
assertEquals( "Notification should be inserted into notification queue.", 1, notificationService.getForUserID( new UserID( 1 ) ).size() );
}