// A problem occurred whilst attempting to construct an object of type 'org.springframework.expression.spel.ConstructorInvocationTests$Tester' using arguments '(java.lang.Integer)'
intidx=e.getMessage().indexOf("Tester");
if(idx==-1){
Assert.fail("Expected reference to Tester in :"+e.getMessage());
}
// normal
}
// If counter is 4 then the method got called twice!