Hi Jaber,
I am afraid jbpm4 IoC container didn't allow override a component. It allow we define multiply components which have same type. And when jbpm4 try to find a component from IoC container, it will use class type as the query parameter, if there are multiple components having save type, then it will return the first.
So I suggest you should remove the default mail-session configuration when you do test.