diff --git a/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java b/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java
index <HASH>..<HASH> 100644
--- a/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java
+++ b/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java
@@ -37,7 +37,7 @@ public class EmailTestCase extends PluggableActivitiTestCase {
         wiser.start();
         serverUpAndRunning = true;
       } catch (RuntimeException e) { // Fix for slow port-closing Jenkins
-        if (e.getMessage().toLowerCase().contains("BindException")) {
+        if (e.getMessage().toLowerCase().contains("bindexception")) {
           Thread.sleep(250L);
         }
       }
(possible) fix for failing email tests