@Test
public void createSuccessEmail() throws Exception {

  setJobStatus(Status.SUCCEEDED);
  this.executableFlow.setEndTime(END_TIME_MILLIS);
  this.executableFlow.setStatus(Status.SUCCEEDED);
  assertTrue(this.mailCreator.createSuccessEmail(
      this.executableFlow, this.message, this.azkabanName, this.scheme, this.clientHostname,
      this.clientPortNumber));
  assertEquals("Flow 'mail-creator-test' has succeeded on unit-tests", this.message.getSubject());
  assertThat(TestUtils.readResource("successEmail.html", this))
      .isEqualToIgnoringWhitespace(this.message.getBody());
}