mappings.setProperty(Exception.class.getName(), "RECEIVER, Receiver error, en");
mappings.setProperty(RuntimeException.class.getName(), "SENDER, Sender error, en");
resolver.setExceptionMappings(mappings);
MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
SOAPMessage message = messageFactory.createMessage();
SoapMessageFactory factory = new SaajSoapMessageFactory(messageFactory);
MessageContext context = new DefaultMessageContext(new SaajSoapMessage(message), factory);
boolean result = resolver.resolveException(context, null, new IllegalArgumentException("bla"));
Assert.assertTrue("resolveException returns false", result);