@Test
public void createFailedUpdateMessage() throws Exception {

  final ExecutorManagerException exception = createTestStracktrace();
  assertTrue(this.mailCreator
      .createFailedUpdateMessage(Arrays.asList(this.executableFlow, this.executableFlow),
          this.executor, exception, this.message, this.azkabanName, this.scheme,
          this.clientHostname, this.clientPortNumber));
  assertEquals("Flow status could not be updated from executor1-host on unit-tests",
      this.message.getSubject());
  assertThat(TestUtils.readResource("failedUpdateMessage.html", this))
      .isEqualToIgnoringWhitespace(this.message.getBody());
}