@Test(timeout = 60 * 1000)
public void testActiveMQRecoveryPolicy() throws Exception {
// test with ActiveMQ LastImageSubscriptionRecoveryPolicy
final PolicyMap policyMap = new PolicyMap();
final PolicyEntry policyEntry = new PolicyEntry();
policyEntry.setSubscriptionRecoveryPolicy(new LastImageSubscriptionRecoveryPolicy());
policyMap.put(new ActiveMQTopic(">"), policyEntry);
brokerService.setDestinationPolicy(policyMap);
MQTT mqtt = createMQTTConnection("pub-sub", true);
final int[] retain = new int[1];