@Test public void testGenerateEmail_Returns_As_Expected(){ NotificationEmailGenerator sut = new NotificationEmailGenerator(); Notification notification = new Notification(); final String details = "details"; notification.setDetails(details); String result = sut.generateEmail(notification); assertEquals(details, result); }
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);  }