if (in.getId().equals("1234567890")) {
response.setTransactionId("aaaaaaaaaaxxx"); // invalid transaction id
} else if (in.getId().equals("9999999999")) {
SomeFault someFault = new SomeFault();
someFault.setErrorCode("1234");
throw new DoSomethingFault("Fault", someFault);
} else if (in.getId().equals("8888888888")) {
SomeFault someFault = new SomeFault();
someFault.setErrorCode("1");
throw new DoSomethingFault("Fault", someFault);
} else {
response.setTransactionId("aaaaaaaaaa");
}
return response;