ActiveMQTextMessage message = new ActiveMQTextMessage();
message.setDestination(dest);
activeMQMessageProducer.send(message, null);
// send a duplicate
activeMQConnection.syncSendPacket(message);
Message received = messageConsumer.receive(4000);
assertNotNull("Got message", received);
assertEquals("match", message.getJMSMessageID(), received.getJMSMessageID());