Soapui 5.6.1: read a message from IBM MQ with block on read
I am using Soapui 5.6.1 and I need to write a groovy script test step to read a message from an IBM MQ queue with a block on reading (waiting with a timeout for a message to arrive in the queue). I am able to read a message using RFHutil\mqcapone.exe but this doesn't have an option to wait for a message to arrive in the queue and I don't want to use sleep or polling. It seems that my only choice is to use HermesJMS but I saw that SoapUI 5.6 or later does not support HermesJMS.
Please advise what to do. Maybe you can point me to a code example or a book.