// Receive messages non-transacted
int i = 0;
while ( i < nMsgs) {
AMQPMessage msg = c.receive();
if( msg!=null ) {
final AMQPType value = msg.getAmqpValue().getValue();
if (value instanceof AMQPString) {
String s = ((AMQPString) value).getValue();
assertEquals(String.format(dataFormat, i), s);
System.out.println("Received: " + i);
}