@Override
    public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
        super.init(ctx);
        this.mqttNodeConfiguration = TbNodeUtils.convert(configuration, TbMqttNodeConfiguration.class);
        try {
            this.mqttClient = initClient(ctx);
        } catch (Exception e) {
            throw new TbNodeException(e);
        }
    }
@Test
    public void givenSuccessfulConnectResult_whenInit_thenOk() throws Exception {
        mqttNodeConfig.setClientId("bfrbTESTmfkr23");
        mqttNodeConfig.setAppendClientIdSuffix(true);
        mqttNodeConfig.setCredentials(new CertPemCredentials());

        mockSuccessfulInit();

        assertThatNoException().isThrownBy(() -> mqttNode.init(ctxMock, new TbNodeConfiguration(JacksonUtil.valueToTree(mqttNodeConfig))));
    }