/*
 * Copyright © 2013-2019, The SeedStack authors <http://seedstack.org>
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
/**
 *
 */

package org.seedstack.mqtt.fixtures;

import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.seedstack.mqtt.MqttListener;

/**
 * {@link @MqttListener} fixture used to test Mqtt communication.
 */
@MqttListener(clients = "", topics = {"${test.dest1.name}", "${test.dest2.name}"}, qos = {
        "${test.dest1.qos}", "${test.dest2.qos}"})
public class DisabledMqttListener implements MqttCallback {
    @Override
    public void connectionLost(Throwable cause) {
        throw new IllegalStateException("should not be reached");
    }

    @Override
    public void messageArrived(String topic, MqttMessage message) throws Exception {
        throw new IllegalStateException("should not be reached");
    }

    @Override
    public void deliveryComplete(IMqttDeliveryToken token) {
        throw new IllegalStateException("should not be reached");
    }
}

@@ -526,16 +526,73 @@
 istener;
+%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;
 %0A%0A/**%0A *
@@ -861,16 +861,162 @@
 lback %7B%0A
+%0A    private static final Logger LOGGER = LoggerFactory.getLogger(DisabledMqttListener.class);%0A%0A    public static String messageReceived = null;%0A%0A
     @Ove

Add test