Oh, I see, I didn't notice the testcase already existed, sorry for that. However, if I understand it correctly, it tests connection between two servers, whereas my testcases use a standalone client, so the scenario is a bit different.

ad "You can do this testing by creating the scoped client context to contain a EJB receiver with a specific user credential." -> is there any way to do that? I wasn't able to find out how to get hold of associated receivers and retrieve credential info from them. I lack some documentation, had to go through the code. If you could point be at least a bit, I would be very grateful.