Integration test for ESBJAVA-3438

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