Adding test case for public JIRA https://wso2.org/jira/browse/ESBJAVA-3027