private static final String NEWLINE = System.getProperty("line.separator");
@Test
public void welcomeMail() {
WelcomeMailTransformer transformer = new WelcomeMailTransformer();
Account account = new Account(1L, "Roy", "Clarkson", "rclarkson@vmware.com", "rclarkson", "http://foo.com/bar.jpg", new UriTemplate("http://greenhouse.springsource.org/members/{id}"));
SimpleMailMessage welcomeMail = (SimpleMailMessage) transformer.welcomeMail(account);
assertEquals("rclarkson@vmware.com", welcomeMail.getTo()[0]);
assertEquals("Greenhouse <noreply@springsource.com>", welcomeMail.getFrom());
assertEquals("Welcome to the Greenhouse!", welcomeMail.getSubject());
String mailText = welcomeMail.getText();