Test case for ESVJAVA 3267

https://wso2.org/jira/browse/ESBJAVA-3267