@Test
public void testAbortedTriggerShouldSendEmailWhenBuildAborts()
throws Exception {
project.getBuildersList().add(new MockBuilder(Result.ABORTED));
AbortedTrigger abortedTrigger = new AbortedTrigger(recProviders, "$DEFAULT_RECIPIENTS",
"$DEFAULT_REPLYTO", "$DEFAULT_SUBJECT", "$DEFAULT_CONTENT", "", 0, "project");
addEmailType(abortedTrigger);
publisher.getConfiguredTriggers().add(abortedTrigger);
FreeStyleBuild build = project.scheduleBuild2(0).get();