NotBuiltTrigger trigger = new NotBuiltTrigger(recProviders, "$DEFAULT_RECIPIENTS",
"$DEFAULT_REPLYTO", "$DEFAULT_SUBJECT", "$DEFAULT_CONTENT", "", 0, "project");
addEmailType(trigger);
publisher.getConfiguredTriggers().add(trigger);
FreeStyleBuild build = project.scheduleBuild2(0).get();
j.assertBuildStatus(Result.FAILURE, build);
assertThat("Email should not have been triggered, so we shouldn't see it in the logs.", build.getLog(100),
not(hasItems("Email was triggered for: " + NotBuiltTrigger.TRIGGER_NAME)));
assertEquals(0, Mailbox.get("ashlux@gmail.com").size());
}