adding test cases for ESBJAVA-3047

merge this