add status to JavaSenderException and test cases