@Override
    protected void doStart() throws Exception {
        LOG.debug("Connecting to: {}...", getEndpoint().getConnectionString());

        super.doStart();
        session = createSession();

        LOG.info("Connected to: {}", getEndpoint().getConnectionString());
    }
@Test
    public void addressRangeFromConfigurationIsUsed() throws Exception {
        configuration.setAddressRange("(111*|222*|333*)");
        BindParameter expectedBindParameter = new BindParameter(
                BindType.BIND_RX,
                "smppclient",
                "password",
                "cp",
                TypeOfNumber.UNKNOWN,
                NumberingPlanIndicator.UNKNOWN,
                "(111*|222*|333*)");
        when(session.connectAndBind("localhost",
                Integer.valueOf(2775),
                expectedBindParameter))
                .thenReturn("1");

        consumer.doStart();

        verify(session).connectAndBind("localhost",
                Integer.valueOf(2775),
                expectedBindParameter);
    }