@Test(expected = IllegalArgumentException.class) public void testGenerateEmail_Throws_Exception_Given_Null_Notification(){ NotificationEmailGenerator sut = new NotificationEmailGenerator(); sut.generateEmail(null); }
public String generateEmail(Notification notification) { Assert.notNull(notification); return notification.getDetails(); }
NotificationEmailGenerator { public String generateEmail(Notification notification) { Assert.notNull(notification); return notification.getDetails(); } }
NotificationEmailGenerator { public String generateEmail(Notification notification) { Assert.notNull(notification); return notification.getDetails(); }  }
NotificationEmailGenerator { public String generateEmail(Notification notification) { Assert.notNull(notification); return notification.getDetails(); }  String generateEmail(Notification notification); }
NotificationEmailGenerator { public String generateEmail(Notification notification) { Assert.notNull(notification); return notification.getDetails(); }  String generateEmail(Notification notification);  }